diff options
author | David Crocker <dcrocker@eschertech.com> | 2019-12-14 01:25:54 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2019-12-14 01:25:54 +0300 |
commit | 8ab811c4122a4fef46b7a6cd5bc410f484b5f2dd (patch) | |
tree | a3a681de83601e6e4d7cd8e4fa20b51c4ed468da /src/Endstops/SwitchEndstop.h | |
parent | c3913a51be149ce0f8451017aa15c894684d8e1f (diff) |
Fixed active low endstops on Duet 2
Diffstat (limited to 'src/Endstops/SwitchEndstop.h')
-rw-r--r-- | src/Endstops/SwitchEndstop.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Endstops/SwitchEndstop.h b/src/Endstops/SwitchEndstop.h index 5fb2f623..cd4492be 100644 --- a/src/Endstops/SwitchEndstop.h +++ b/src/Endstops/SwitchEndstop.h @@ -46,7 +46,7 @@ private: inline bool IsTriggered(size_t index) const { #if SUPPORT_CAN_EXPANSION - return (boardNumbers[index] == CanId::MasterAddress) ? ports[index].Read() != activeLow : states[index] != activeLow; + return (boardNumbers[index] == CanId::MasterAddress) ? ports[index].Read() : states[index] != activeLow; #else return ports[index].Read(); #endif |