Changeset 776
- Timestamp:
- 08/01/08 18:18:52 (4 months ago)
- Files:
-
- 1 modified
-
firmware/trunk/libraries/stepper/stepper.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
firmware/trunk/libraries/stepper/stepper.c
r771 r776 634 634 void Stepper_IRQCallback( int id ) 635 635 { 636 if(id < 0 || id > 1) 637 return; 636 638 StepperControl* s = Stepper->control[ id ]; 637 639 … … 876 878 void Stepper_SetBipolarOutput( StepperControl *s, int position ) 877 879 { 878 int output = position % 4; 880 //int output = position % 4; // work around % bug - negative numbers not handled properly 881 int output = position & 0x3; 879 882 int* iop = s->io; 880 883
