Changeset 777
- Timestamp:
- 08/04/08 11:28:46 (4 months ago)
- Files:
-
- 1 modified
-
firmware/trunk/libraries/stepper/stepper.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
firmware/trunk/libraries/stepper/stepper.c
r776 r777 688 688 void Stepper_SetUnipolarHalfStepOutput( StepperControl *s, int position ) 689 689 { 690 int output = position % 8; 690 //int output = position % 8; 691 int output = position & 0x7; 691 692 692 693 int* iop = s->io; … … 760 761 void Stepper_SetUnipolarOutput( StepperControl *s, int position ) 761 762 { 762 int output = position % 4; 763 //int output = position % 4; 764 int output = position & 0x3; 763 765 int* iop = s->io; 764 766 … … 806 808 void Stepper_SetBipolarHalfStepOutput( StepperControl *s, int position ) 807 809 { 808 int output = position % 8;809 810 //int output = position % 8; 811 int output = position & 0x7; 810 812 int* iop = s->io; 811 813
