fix logic

This commit is contained in:
Mike Kinney committed 2022-01-27 17:09:13 -08:00
1 parent e6fb066fe5
commit 66866a4c65
1 file changed
+1 -1
+1 -1
View File
@@ -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