Skip to content

Commit

Permalink
Changed wording
Browse files Browse the repository at this point in the history
  • Loading branch information
bdring committed Dec 13, 2024
1 parent 2d569cd commit 7b56b8f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions FluidNC/src/Control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion FluidNC/src/Control.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion FluidNC/src/ProcessSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b56b8f

Please sign in to comment.