From f5b540bdca881d09fac7aecfbf4fefdbe0d48da0 Mon Sep 17 00:00:00 2001 From: David Crocker Date: Wed, 3 Mar 2021 10:52:37 +0000 Subject: Got rid of "near endstop" status Cherry picked from commit 165b178f7de75b1d00b26fec28f2a03fb36d6119 --- src/GCodes/GCodes3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/GCodes/GCodes3.cpp') diff --git a/src/GCodes/GCodes3.cpp b/src/GCodes/GCodes3.cpp index a30193e1..599caf83 100644 --- a/src/GCodes/GCodes3.cpp +++ b/src/GCodes/GCodes3.cpp @@ -508,7 +508,7 @@ GCodeResult GCodes::WaitForPin(GCodeBuffer& gb, const StringRef &reply) Platform& pfm = platform; const bool ok = endstopsToWaitFor.IterateWhile([&pfm, activeHigh](unsigned int axis, unsigned int)->bool { - const bool stopped = pfm.GetEndstops().Stopped(axis) == EndStopHit::atStop; + const bool stopped = pfm.GetEndstops().Stopped(axis); return stopped == activeHigh; } ) -- cgit v1.2.3