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>2020-04-12 19:24:48 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-04-12 19:24:48 +0300
commit9b4dc61e13665d41645d78e1151db8b5b7194bdf (patch)
treeed8439ffa9a1d3af63c3afb7c50cdfed7f853a8d /src/Endstops/SwitchEndstop.cpp
parent8b7003ac0a4e2e2328fc80cbfb65fac831376bfb (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.cpp5
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