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/SwitchEndstop.h | |
parent | f6b6be2b85b4cf83a366ffe56de89a1cbdc2a2de (diff) |
Partially implemented M954
Diffstat (limited to 'src/Endstops/SwitchEndstop.h')
-rw-r--r-- | src/Endstops/SwitchEndstop.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Endstops/SwitchEndstop.h b/src/Endstops/SwitchEndstop.h index a4f33da6..75117daf 100644 --- a/src/Endstops/SwitchEndstop.h +++ b/src/Endstops/SwitchEndstop.h @@ -9,7 +9,6 @@ #define SRC_ENDSTOPS_SWITCHENDSTOP_H_ #include "Endstop.h" - #include "GCodes/GCodeResult.h" // Switch-type endstop, either on the main board or on a CAN-connected board @@ -45,7 +44,7 @@ private: inline bool IsTriggered(size_t index) const noexcept { #if SUPPORT_CAN_EXPANSION - return (boardNumbers[index] == CanId::MasterAddress) ? ports[index].ReadDigital() : states[index]; + return (boardNumbers[index] == CanInterface::GetCanAddress()) ? ports[index].ReadDigital() : states[index]; #else return ports[index].ReadDigital(); #endif |