diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-12-28 14:23:52 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-12-28 14:23:52 +0300 |
commit | 44f3b93ddec110ecde6d5b5f8c32cdd8f4cfea22 (patch) | |
tree | 82eb659348214ef8228526d45e54d3016bf51b9b /src/Endstops/EndstopsManager.cpp | |
parent | f6b6be2b85b4cf83a366ffe56de89a1cbdc2a2de (diff) |
Partially implemented M954
Diffstat (limited to 'src/Endstops/EndstopsManager.cpp')
-rw-r--r-- | src/Endstops/EndstopsManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Endstops/EndstopsManager.cpp b/src/Endstops/EndstopsManager.cpp index 4639f681..e8104eef 100644 --- a/src/Endstops/EndstopsManager.cpp +++ b/src/Endstops/EndstopsManager.cpp @@ -25,7 +25,7 @@ #include <Heating/Sensors/TemperatureSensor.h> #if SUPPORT_CAN_EXPANSION -# include "CanMessageBuffer.h" +# include <CanMessageBuffer.h> #endif ReadWriteLock EndstopsManager::endstopsLock; @@ -680,7 +680,7 @@ GCodeResult EndstopsManager::HandleM558(GCodeBuffer& gb, const StringRef &reply) gb.Seen('C'); gb.GetReducedString(pinNames.GetRef()); const CanAddress boardAddress = IoPort::RemoveBoardAddress(pinNames.GetRef()); - if (boardAddress != CanId::MasterAddress) + if (boardAddress != CanInterface::GetCanAddress()) { RemoteZProbe *newRemoteProbe = new RemoteZProbe(probeNumber, boardAddress, (ZProbeType)probeType); const GCodeResult rslt = newRemoteProbe->Create(pinNames.GetRef(), reply); |