diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-04-12 19:24:48 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-04-12 19:24:48 +0300 |
commit | 9b4dc61e13665d41645d78e1151db8b5b7194bdf (patch) | |
tree | ed8439ffa9a1d3af63c3afb7c50cdfed7f853a8d /src/Endstops/SwitchEndstop.cpp | |
parent | 8b7003ac0a4e2e2328fc80cbfb65fac831376bfb (diff) |
Various fixes
Meta commands no longer affect 'result'
Use new hiccup generating method from expansion board firmware
Diffstat (limited to 'src/Endstops/SwitchEndstop.cpp')
-rw-r--r-- | src/Endstops/SwitchEndstop.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Endstops/SwitchEndstop.cpp b/src/Endstops/SwitchEndstop.cpp index 98f5b5ef..b3464d74 100644 --- a/src/Endstops/SwitchEndstop.cpp +++ b/src/Endstops/SwitchEndstop.cpp @@ -42,10 +42,11 @@ void SwitchEndstop::ReleasePorts() noexcept { RemoteInputHandle h(RemoteInputHandle::typeEndstop, GetAxis(), numPortsUsed); String<StringLength100> reply; - if (CanInterface::DeleteHandle(bn, h, reply.GetRef()) != GCodeResult::ok) + const GCodeResult rslt = CanInterface::DeleteHandle(bn, h, reply.GetRef()); + if (rslt != GCodeResult::ok) { reply.cat('\n'); - reprap.GetPlatform().Message(ErrorMessage, reply.c_str()); + reprap.GetPlatform().Message(GetGenericMessageType(rslt), reply.c_str()); } } #endif |