minor edits

This commit is contained in:
Simen Svale Skogsrud
2009-01-30 11:26:21 +01:00
parent 68c13981b3
commit 02f6699b0a
2 changed files with 5 additions and 9 deletions

View File

@ -397,9 +397,9 @@ void set_stepper_directions(int8_t *direction)
or branching. Fast and compact, yet practically unreadable. Sorry sorry sorry.
*/
direction_bits = ~(
((direction[X_AXIS]&128)>>(7-X_DIRECTION_BIT)) |
((direction[Y_AXIS]&128)>>(7-Y_DIRECTION_BIT)) |
((direction[Z_AXIS]&128)>>(7-Z_DIRECTION_BIT))
((direction[X_AXIS]&0x80)>>(7-X_DIRECTION_BIT)) |
((direction[Y_AXIS]&0x80)>>(7-Y_DIRECTION_BIT)) |
((direction[Z_AXIS]&0x80)>>(7-Z_DIRECTION_BIT))
);
}