Fixed incorrect handling of spindle stop on "stop" command

This commit is contained in:
Terje Io
2022-01-29 14:00:52 +01:00
parent 27a3d3e1fe
commit 1c2dc4bfc5
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -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;
}
+1 -1
View File
@@ -34,7 +34,7 @@
#else
#define GRBL_VERSION "1.1f"
#endif
#define GRBL_BUILD 20220123
#define GRBL_BUILD 20220129
// The following symbols are set here if not already set by the compiler or in config.h
// Do NOT change here!