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>2019-12-14 01:25:54 +0300
committerDavid Crocker <dcrocker@eschertech.com>2019-12-14 01:25:54 +0300
commit8ab811c4122a4fef46b7a6cd5bc410f484b5f2dd (patch)
treea3a681de83601e6e4d7cd8e4fa20b51c4ed468da /src/Endstops/SwitchEndstop.h
parentc3913a51be149ce0f8451017aa15c894684d8e1f (diff)
Fixed active low endstops on Duet 2
Diffstat (limited to 'src/Endstops/SwitchEndstop.h')
-rw-r--r--src/Endstops/SwitchEndstop.h2
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