diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-03-03 13:52:37 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-03-03 13:52:37 +0300 |
commit | f5b540bdca881d09fac7aecfbf4fefdbe0d48da0 (patch) | |
tree | 40c4c0bb32378ee33e53c251be74d4764d9df350 /src/Endstops/SwitchEndstop.cpp | |
parent | 7a3045b53e3e303a988ce4565b2ac21206182ffb (diff) |
Got rid of "near endstop" status
Cherry picked from commit 165b178f7de75b1d00b26fec28f2a03fb36d6119
Diffstat (limited to 'src/Endstops/SwitchEndstop.cpp')
-rw-r--r-- | src/Endstops/SwitchEndstop.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Endstops/SwitchEndstop.cpp b/src/Endstops/SwitchEndstop.cpp index 87af1b9b..63716235 100644 --- a/src/Endstops/SwitchEndstop.cpp +++ b/src/Endstops/SwitchEndstop.cpp @@ -118,16 +118,16 @@ EndStopType SwitchEndstop::GetEndstopType() const noexcept } // Test whether we are at or near the stop -EndStopHit SwitchEndstop::Stopped() const noexcept +bool SwitchEndstop::Stopped() const noexcept { for (size_t i = 0; i < numPortsUsed; ++i) { if (IsTriggered(i)) { - return EndStopHit::atStop; + return true; } } - return EndStopHit::noStop; + return false; } // This is called to prime axis endstops |