From 9f46d3adb4749b7206ee69676ce2b64855ee9d9e Mon Sep 17 00:00:00 2001 From: Mitch Bradley Date: Fri, 25 Jun 2021 10:02:29 -1000 Subject: [PATCH] Enter config alarm state if homing failed due to bad config --- Grbl_Esp32/src/MotionControl.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Grbl_Esp32/src/MotionControl.cpp b/Grbl_Esp32/src/MotionControl.cpp index c4f64222..c9a943cd 100644 --- a/Grbl_Esp32/src/MotionControl.cpp +++ b/Grbl_Esp32/src/MotionControl.cpp @@ -399,6 +399,8 @@ void mc_homing_cycle(AxisMask axis_mask) { } if (!someAxisHomed) { report_status_message(Error::HomingNoCycles, CLIENT_ALL); + sys.state = State::ConfigAlarm; + return; } } protocol_execute_realtime(); // Check for reset and set system abort.