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:
Diffstat (limited to 'src/Endstops/LocalZProbe.cpp')
-rw-r--r--src/Endstops/LocalZProbe.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Endstops/LocalZProbe.cpp b/src/Endstops/LocalZProbe.cpp
index eea7ccf7..7af2c88d 100644
--- a/src/Endstops/LocalZProbe.cpp
+++ b/src/Endstops/LocalZProbe.cpp
@@ -72,6 +72,17 @@ GCodeResult LocalZProbe::Configure(GCodeBuffer& gb, const StringRef &reply, bool
return ZProbe::Configure(gb, reply, seen);
}
+#if ALLOCATE_DEFAULT_PORTS
+
+bool LocalZProbe::AssignPorts(const char* pinNames, const StringRef& reply)
+{
+ IoPort* const ports[] = { &inputPort, &modulationPort };
+ const PinAccess access[] = { PinAccess::read, PinAccess::write0 };
+ return IoPort::AssignPorts(pinNames, reply, PinUsedBy::zprobe, 2, ports, access);
+}
+
+#endif
+
// This is called by the tick ISR to get the raw Z probe reading to feed to the filter
uint16_t LocalZProbe::GetRawReading() const
{