diff --git a/gcode.c b/gcode.c index 62e0a06..89cd4f4 100644 --- a/gcode.c +++ b/gcode.c @@ -35,15 +35,11 @@ /* Omitted for the time being: - - Spindle direction - group 0 = {G10, G28, G30, G53, G92, G92.1, G92.2, G92.3} (Non modal G-codes) - group 5 = {G93, G94} feed rate mode - group 12 = {G54, G55, G56, G57, G58, G59, G59.1, G59.2, G59.3} coordinate system selection - group 13 = {G61, G61.1, G64} path control mode - group 4 = {M0, M1, M2, M30, M60} stopping group 8 = {M7, M8, M9} coolant (special case: M7 and M8 may be active at the same time) group 9 = {M48, M49} enable/disable feed and speed override switches + group 12 = {G54, G55, G56, G57, G58, G59, G59.1, G59.2, G59.3} coordinate system selection + group 13 = {G61, G61.1, G64} path control mode */ #include "gcode.h" diff --git a/motion_control.c b/motion_control.c index 8ed6cb3..97e773f 100644 --- a/motion_control.c +++ b/motion_control.c @@ -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)) ); }