Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2022-01-13 12:47:43 +0300
committerDavid Crocker <dcrocker@eschertech.com>2022-01-13 12:47:43 +0300
commitaf7177e086137b955742eb6ba9d1cf5ffedb9e9a (patch)
treebec11ece2af2c12cf8777ad3c41e813ac93b6e52 /src/Endstops/EndstopsManager.cpp
parentd719a4385da878820e69f3e4c1c998c8f36dc874 (diff)
Changed to use Succeeded(GCodeResult) function
Diffstat (limited to 'src/Endstops/EndstopsManager.cpp')
-rw-r--r--src/Endstops/EndstopsManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Endstops/EndstopsManager.cpp b/src/Endstops/EndstopsManager.cpp
index 1f51bcc1..28c2564a 100644
--- a/src/Endstops/EndstopsManager.cpp
+++ b/src/Endstops/EndstopsManager.cpp
@@ -699,7 +699,7 @@ GCodeResult EndstopsManager::HandleM558(GCodeBuffer& gb, const StringRef &reply)
}
const GCodeResult rslt = newProbe->Configure(gb, reply, seen);
- if (rslt == GCodeResult::ok || rslt == GCodeResult::warning)
+ if (Succeeded(rslt))
{
zProbes[probeNumber] = newProbe;
}