diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-10-19 12:51:35 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-10-19 12:51:35 +0300 |
commit | 7361f65fc75ed4d5e73aa3d87b71b060aaaac1e5 (patch) | |
tree | bef8c81cd771d981bf936ffea5449e4af0a82788 /src/GPIO | |
parent | 7f04c9f483e561899467d4feab3d660a92bee1d1 (diff) |
Minor refactoring to bring IoPorts into line with expansion board f/w
Diffstat (limited to 'src/GPIO')
-rw-r--r-- | src/GPIO/GpInPort.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GPIO/GpInPort.cpp b/src/GPIO/GpInPort.cpp index 57bd7b4a..cd2b28b7 100644 --- a/src/GPIO/GpInPort.cpp +++ b/src/GPIO/GpInPort.cpp @@ -47,7 +47,7 @@ bool GpInputPort::GetState() const noexcept return currentState; } #endif - return port.Read(); + return port.ReadDigital(); } // Return true if the port is not configured @@ -107,7 +107,7 @@ GCodeResult GpInputPort::Configure(uint32_t gpinNumber, GCodeBuffer &gb, const S { if (port.AssignPort(pinName.c_str(), reply, PinUsedBy::gpin, PinAccess::read)) { - currentState = port.Read(); + currentState = port.ReadDigital(); rslt = GCodeResult::ok; } else |