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-04-06 19:27:25 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-04-06 19:27:25 +0300
commit6e7705dfe87ace89df8feb76345d2483fd829d01 (patch)
tree1ff24be666dce98c926e095a37454dbb86876b73 /src/GPIO
parent63a7af6ca800ad8f2b5b7b7f50bf514e9d84658a (diff)
Bug fix: M950 J# with no other parameters reported wrong input state
Diffstat (limited to 'src/GPIO')
-rw-r--r--src/GPIO/GpioPorts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GPIO/GpioPorts.cpp b/src/GPIO/GpioPorts.cpp
index e4940741..20ffa971 100644
--- a/src/GPIO/GpioPorts.cpp
+++ b/src/GPIO/GpioPorts.cpp
@@ -139,7 +139,7 @@ GCodeResult GpInputPort::Configure(uint32_t gpinNumber, GCodeBuffer &gb, const S
reply.copy("Pin ");
port.AppendPinName(reply);
}
- reply.catf(", active: %s", (currentState) ? "true" : "false");
+ reply.catf(", active: %s", (GetState()) ? "true" : "false");
}
return GCodeResult::ok;
}