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.cpp | |
parent | c3913a51be149ce0f8451017aa15c894684d8e1f (diff) |
Fixed active low endstops on Duet 2
Diffstat (limited to 'src/Endstops/SwitchEndstop.cpp')
-rw-r--r-- | src/Endstops/SwitchEndstop.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Endstops/SwitchEndstop.cpp b/src/Endstops/SwitchEndstop.cpp index 747c8f41..b010b2f6 100644 --- a/src/Endstops/SwitchEndstop.cpp +++ b/src/Endstops/SwitchEndstop.cpp @@ -108,6 +108,7 @@ GCodeResult SwitchEndstop::Configure(const char *pinNames, const StringRef& repl ReleasePorts(); return GCodeResult::error; } + ports[numPortsUsed].SetInvert(inputType == EndStopInputType::activeLow); } ++numPortsUsed; |