diff --git a/coolant_control.c b/coolant_control.c index 9d66c50..60cbf2f 100644 --- a/coolant_control.c +++ b/coolant_control.c @@ -45,7 +45,7 @@ void coolant_stop() void coolant_run(uint8_t mode) { - if (sys.state != STATE_CHECK_MODE) { return; } + if (sys.state == STATE_CHECK_MODE) { return; } protocol_buffer_synchronize(); // Ensure coolant turns on when specified in program. if (mode == COOLANT_FLOOD_ENABLE) { diff --git a/motion_control.c b/motion_control.c index 321dfe9..adc4a73 100644 --- a/motion_control.c +++ b/motion_control.c @@ -214,7 +214,7 @@ void mc_arc(float *position, float *target, float *offset, float radius, float f // Execute dwell in seconds. void mc_dwell(float seconds) { - if (sys.state != STATE_CHECK_MODE) { return; } + if (sys.state == STATE_CHECK_MODE) { return; } uint16_t i = floor(1000/DWELL_TIME_STEP*seconds); protocol_buffer_synchronize(); diff --git a/settings.h b/settings.h index a22e358..0be1035 100644 --- a/settings.h +++ b/settings.h @@ -26,7 +26,7 @@ #define GRBL_VERSION "0.9e" -#define GRBL_VERSION_BUILD "20140525" +#define GRBL_VERSION_BUILD "20140529" // Version of the EEPROM data. Will be used to migrate existing data from older versions of Grbl // when firmware is upgraded. Always stored in byte 0 of eeprom diff --git a/spindle_control.c b/spindle_control.c index b7dd36e..0ebfa85 100644 --- a/spindle_control.c +++ b/spindle_control.c @@ -57,7 +57,7 @@ void spindle_stop() void spindle_run(uint8_t direction, float rpm) { - if (sys.state != STATE_CHECK_MODE) { return; } + if (sys.state == STATE_CHECK_MODE) { return; } // Empty planner buffer to ensure spindle is set when programmed. protocol_buffer_synchronize();