mirror of
https://github.com/bdring/Grbl_Esp32.git
synced 2025-08-30 17:49:56 +02:00
0xff -> 255 for clarity. The hex representation makes no sense here
This commit is contained in:
@@ -222,7 +222,7 @@ void protocol_main_loop() {
|
||||
return; // Bail to main() program loop to reset system.
|
||||
}
|
||||
// check to see if we should disable the stepper drivers ... esp32 work around for disable in main loop.
|
||||
if (stepper_idle && config->_idleTime != 0xff) {
|
||||
if (stepper_idle && config->_idleTime != 255) {
|
||||
if (esp_timer_get_time() > stepper_idle_counter) {
|
||||
config->_axes->set_disable(true);
|
||||
}
|
||||
|
@@ -437,7 +437,7 @@ void IRAM_ATTR st_go_idle() {
|
||||
Stepper_Timer_Stop();
|
||||
|
||||
// Set stepper driver idle state, disabled or enabled, depending on settings and circumstances.
|
||||
if (((config->_idleTime != 0xff) || sys_rt_exec_alarm != ExecAlarm::None || sys.state == State::Sleep) && sys.state != State::Homing) {
|
||||
if (((config->_idleTime != 255) || sys_rt_exec_alarm != ExecAlarm::None || sys.state == State::Sleep) && sys.state != State::Homing) {
|
||||
// Force stepper dwell to lock axes for a defined amount of time to ensure the axes come to a complete
|
||||
// stop and not drift from residual inertial forces at the end of the last movement.
|
||||
|
||||
|
Reference in New Issue
Block a user