Skip to content

Commit 2d7491d

Browse files
committed
avoid the reserved bits
1 parent 6a6bfe4 commit 2d7491d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ def _wait_for_msg(self, timeout=0.1):
903903
if res in [None, b"", b"\x00"]:
904904
# If we get here, it means that there is nothing to be received
905905
return None
906-
if res[0] == MQTT_PINGRESP:
906+
if res[0] & 0xF0 == MQTT_PINGRESP:
907907
if self.logger is not None:
908908
self.logger.debug("Got PINGRESP")
909909
sz = self._sock_exact_recv(1)[0]

0 commit comments

Comments
 (0)