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
path: root/src/GPIO
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-10-19 12:51:35 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-10-19 12:51:35 +0300
commit7361f65fc75ed4d5e73aa3d87b71b060aaaac1e5 (patch)
treebef8c81cd771d981bf936ffea5449e4af0a82788 /src/GPIO
parent7f04c9f483e561899467d4feab3d660a92bee1d1 (diff)
Minor refactoring to bring IoPorts into line with expansion board f/w
Diffstat (limited to 'src/GPIO')
-rw-r--r--src/GPIO/GpInPort.cpp4
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