diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-04-06 19:27:25 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-04-06 19:27:25 +0300 |
commit | 6e7705dfe87ace89df8feb76345d2483fd829d01 (patch) | |
tree | 1ff24be666dce98c926e095a37454dbb86876b73 /src/GPIO | |
parent | 63a7af6ca800ad8f2b5b7b7f50bf514e9d84658a (diff) |
Bug fix: M950 J# with no other parameters reported wrong input state
Diffstat (limited to 'src/GPIO')
-rw-r--r-- | src/GPIO/GpioPorts.cpp | 2 |
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; } |