Skip to content

Commit 6f3165d

Browse files
author
brentru
committed
fix on_message, author name per @jimbobbennett rvw
1 parent fbe6fa0 commit 6f3165d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,7 @@ def _wait_for_msg(self, timeout=30):
713713
pid = pid[0] << 0x08 | pid[1]
714714
sz -= 0x02
715715
msg = self._sock.recv(sz)
716-
if self.on_message is not None:
717-
self._handle_on_message(self, topic, str(msg, "utf-8"))
716+
self._handle_on_message(self, topic, str(msg, "utf-8"))
718717
if res[0] & 0x06 == 0x02:
719718
pkt = bytearray(b"\x40\x02\0\0")
720719
struct.pack_into("!H", pkt, 2, pid)

adafruit_minimqtt/matcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2017 Yotch <https://github.com/yoch>
1+
# Copyright (c) 2017 Yoch <https://github.com/yoch>
22
#
33
# This file is dual licensed under the Eclipse Public License 1.0 and the
44
# Eclipse Distribution License 1.0 as described in the epl-v10 and edl-v10 files.
@@ -10,7 +10,7 @@
1010
1111
MQTT topic filter matcher from the Eclipse Project's Paho.MQTT.Python
1212
https://github.com/eclipse/paho.mqtt.python/blob/master/src/paho/mqtt/matcher.py
13-
* Author(s): Yotch (https://github.com/yoch)
13+
* Author(s): Yoch (https://github.com/yoch)
1414
"""
1515

1616

0 commit comments

Comments
 (0)