Commenting updates. Minor bug fix with exit of soft limit event.

This commit is contained in:
Sonny Jeon
2014-02-19 07:21:40 -07:00
parent 3df61e0ec5
commit b332d6edbb
5 changed files with 37 additions and 32 deletions

View File

@ -190,7 +190,7 @@ void limits_go_home(uint8_t cycle_mask)
if (sys.execute & EXEC_RESET) { protocol_execute_runtime(); return; }
} while (STEP_MASK & axislock);
st_reset(); // Force disable steppers and reset step segment buffer. Ensure homing motion is cleared.
st_reset(); // Immediately force kill steppers and reset step segment buffer.
plan_reset(); // Reset planner buffer. Zero planner positions. Ensure homing motion is cleared.
delay_ms(settings.homing_debounce_delay); // Delay to allow transient dynamics to dissipate.
@ -255,7 +255,7 @@ void limits_soft_check(float *target)
do {
protocol_execute_runtime();
if (sys.abort) { return; }
} while (sys.state == STATE_HOLD);
} while ( sys.state != STATE_IDLE || sys.state != STATE_QUEUED);
}
mc_reset(); // Issue system reset and ensure spindle and coolant are shutdown.