Skip to content

Commit c86076a

Browse files
committed
Fix failure in from_stream method
1 parent a255bd2 commit c86076a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_bluefruit_connect/packet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def from_stream(cls, stream):
103103
break
104104
# Didn't find a packet start. Loop and try again.
105105

106-
header = start + packet_type
106+
header = bytes(start + packet_type)
107107
packet_class = cls._type_to_class.get(header, None)
108108
if not packet_class:
109109
raise ValueError("Unregistered packet type {}".format(header))

0 commit comments

Comments
 (0)