Fixed spindle/coolant/dwell state check.

This commit is contained in:
Sonny Jeon
2014-05-29 15:41:53 -06:00
parent 532c359a11
commit 9439e43975
4 changed files with 4 additions and 4 deletions

View File

@ -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();