From f19c790e48a6f8bff8a23d86ede69e0fd5aa32f1 Mon Sep 17 00:00:00 2001 From: Stefan de Bruijn Date: Thu, 24 Jun 2021 21:22:59 +0200 Subject: [PATCH] Fixed two minor bugs in homing --- Grbl_Esp32/src/Machine/MachineConfig.h | 2 +- Grbl_Esp32/src/ProcessSettings.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Grbl_Esp32/src/Machine/MachineConfig.h b/Grbl_Esp32/src/Machine/MachineConfig.h index eaade29f..e4594da6 100644 --- a/Grbl_Esp32/src/Machine/MachineConfig.h +++ b/Grbl_Esp32/src/Machine/MachineConfig.h @@ -65,7 +65,7 @@ namespace Machine { uint8_t _idleTime = 255; bool _verboseErrors = false; bool _reportInches = false; - bool _homingInitLock = false; + bool _homingInitLock = true; int _softwareDebounceMs = 0; int _stepType = ST_RMT; diff --git a/Grbl_Esp32/src/ProcessSettings.cpp b/Grbl_Esp32/src/ProcessSettings.cpp index 982d1c8c..b50e9bca 100644 --- a/Grbl_Esp32/src/ProcessSettings.cpp +++ b/Grbl_Esp32/src/ProcessSettings.cpp @@ -249,7 +249,7 @@ Error report_ngc(const char* value, WebUI::AuthenticationLevel auth_level, WebUI return Error::Ok; } Error home(int cycle) { - if (homingAxes()) { + if (!homingAxes()) { return Error::SettingDisabled; } if (config->_control->system_check_safety_door_ajar()) {