Skip to content

Commit bfbace8

Browse files
author
brentru
committed
fix small append
1 parent e67aa82 commit bfbace8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_minimqtt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ def connect(self, clean_session=True):
275275
if large_rel_length:
276276
fixed_header.append(0x00)
277277
else:
278-
fixed_header.append(remaining_length + 0x00)
278+
fixed_header.append(remaining_length)
279+
fixed_header.append(0x00)
279280

280281
if self._logger is not None:
281282
self._logger.debug('Sending CONNECT to broker')

0 commit comments

Comments
 (0)