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:
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