Skip to content

Commit 06f1674

Browse files
committed
another case of separate variable
1 parent 59ffe34 commit 06f1674

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,8 +1045,8 @@ def _wait_for_msg(self, timeout: float = 0.1) -> Union[int, None]:
10451045
sz -= topic_len + 2
10461046
pid = 0
10471047
if res[0] & 0x06:
1048-
pid = self._sock_exact_recv(2)
1049-
pid = pid[0] << 0x08 | pid[1]
1048+
pid_buf = self._sock_exact_recv(2)
1049+
pid = pid_buf[0] << 0x08 | pid_buf[1]
10501050
sz -= 0x02
10511051

10521052
# read message contents

0 commit comments

Comments
 (0)