From 66866a4c650d28f68ef2697154d5bd8e9198cf71 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Thu, 27 Jan 2022 17:09:13 -0800 Subject: [PATCH] fix logic --- meshtastic/remote_hardware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshtastic/remote_hardware.py b/meshtastic/remote_hardware.py index 07ad96b..84c8f60 100644 --- a/meshtastic/remote_hardware.py +++ b/meshtastic/remote_hardware.py @@ -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