mirror of
https://github.com/grblHAL/core.git
synced 2026-08-17 16:41:45 +08:00
Fixed incorrect handling of spindle stop on "stop" command
This commit is contained in:
@@ -334,7 +334,11 @@ void gc_spindle_off (void)
|
||||
{
|
||||
gc_state.spindle.rpm = 0.0f;
|
||||
gc_state.modal.spindle.value = 0;
|
||||
spindle_set_state(gc_state.modal.spindle, gc_state.spindle.rpm);
|
||||
#ifndef GRBL_ESP32
|
||||
hal.spindle.set_state(gc_state.modal.spindle, 0.0f);
|
||||
#else
|
||||
hal.spindle.esp32_off();
|
||||
#endif
|
||||
sys.report.spindle = On;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user