diff --git a/FluidNC/src/Control.cpp b/FluidNC/src/Control.cpp index 6989ac21d..e3c0725e4 100644 --- a/FluidNC/src/Control.cpp +++ b/FluidNC/src/Control.cpp @@ -42,8 +42,8 @@ std::string Control::report_status() { return ret; } -bool Control::pins_block_reset() { - std::string blockers("DHFE"); // Door, Hold, Fault, E-Stop block reset and homing +bool Control::pins_block_unlock() { + std::string blockers("DHFE"); // Door, Hold, Fault, E-Stop block unlock and homing for (auto pin : _pins) { if (pin->get() && blockers.find(pin->letter()) != std::string::npos) { return true; diff --git a/FluidNC/src/Control.h b/FluidNC/src/Control.h index a425e3841..470a732ec 100644 --- a/FluidNC/src/Control.h +++ b/FluidNC/src/Control.h @@ -22,7 +22,7 @@ class Control : public Configuration::Configurable { bool stuck(); bool safety_door_ajar(); - bool pins_block_reset(); + bool pins_block_unlock(); std::string report_status(); diff --git a/FluidNC/src/ProcessSettings.cpp b/FluidNC/src/ProcessSettings.cpp index 70c5f14a6..484842b42 100644 --- a/FluidNC/src/ProcessSettings.cpp +++ b/FluidNC/src/ProcessSettings.cpp @@ -378,7 +378,7 @@ static Error cmd_log_verbose(const char* value, AuthenticationLevel auth_level, } static Error home(AxisMask axisMask, Channel& out) { // see if blocking control switches are active - if (config->_control->pins_block_reset()) { + if (config->_control->pins_block_unlock()) { return Error::CheckControlPins; } if (axisMask != Machine::Homing::AllCycles) { // if not AllCycles we need to make sure the cycle is not prohibited