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.cpp
parentc3913a51be149ce0f8451017aa15c894684d8e1f (diff)
Fixed active low endstops on Duet 2
Diffstat (limited to 'src/Endstops/SwitchEndstop.cpp')
-rw-r--r--src/Endstops/SwitchEndstop.cpp1
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;