diff options
author | David Crocker <dcrocker@eschertech.com> | 2019-10-22 20:15:35 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2019-10-22 20:15:35 +0300 |
commit | c25d73194252791ceb479ced79ffc77b31c810fe (patch) | |
tree | 7ab38e353fb66438bbf5130edf5b5cd64a2af6b7 /src/Endstops/LocalZProbe.cpp | |
parent | 3e7b9e6762509a5e5e2aaf442ea128f6b0830943 (diff) |
Release 3.0beta113.0beta11
Fixed compilation errors for Duet 2 boards
Diffstat (limited to 'src/Endstops/LocalZProbe.cpp')
-rw-r--r-- | src/Endstops/LocalZProbe.cpp | 11 |
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 { |