mirror of
https://github.com/meshtastic/python.git
synced 2026-01-13 10:17:55 -05:00
fix logic
This commit is contained in:
@@ -15,7 +15,7 @@ def onGPIOreceive(packet, interface):
|
||||
if "gpioValue" in hw:
|
||||
gpioValue = hw["gpioValue"]
|
||||
else:
|
||||
if "gpioMask" in hw:
|
||||
if not "gpioMask" in hw:
|
||||
# we did get a reply, but due to protobufs, 0 for numeric value is not sent
|
||||
# see https://developers.google.com/protocol-buffers/docs/proto3#default
|
||||
# so, we set it here
|
||||
|
||||
Reference in New Issue
Block a user