Skip to content

Commit 9daa759

Browse files
authored
Merge pull request #28 from lcongdon/fix-from_stream
Fix failure in from_stream method
2 parents fa7d9df + c86076a commit 9daa759

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)