1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-01 10:23:19 +02:00

Fixed two minor bugs in homing

This commit is contained in:
Stefan de Bruijn
2021-06-24 21:22:59 +02:00
parent bb53280341
commit f19c790e48
2 changed files with 2 additions and 2 deletions

View File

@@ -65,7 +65,7 @@ namespace Machine {
uint8_t _idleTime = 255; uint8_t _idleTime = 255;
bool _verboseErrors = false; bool _verboseErrors = false;
bool _reportInches = false; bool _reportInches = false;
bool _homingInitLock = false; bool _homingInitLock = true;
int _softwareDebounceMs = 0; int _softwareDebounceMs = 0;
int _stepType = ST_RMT; int _stepType = ST_RMT;

View File

@@ -249,7 +249,7 @@ Error report_ngc(const char* value, WebUI::AuthenticationLevel auth_level, WebUI
return Error::Ok; return Error::Ok;
} }
Error home(int cycle) { Error home(int cycle) {
if (homingAxes()) { if (!homingAxes()) {
return Error::SettingDisabled; return Error::SettingDisabled;
} }
if (config->_control->system_check_safety_door_ajar()) { if (config->_control->system_check_safety_door_ajar()) {