File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
adafruit_bluefruit_connect Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -104,14 +104,14 @@ def from_stream(cls, stream):
104
104
break
105
105
106
106
# Didn't find a packet start.
107
- text_packet_cls = cls ._type_to_class .get (b"TX" , None )
108
- # Is TextPacket registered?
109
- # If so, read an entire line and pass that to TextPacket.
110
- if text_packet_cls :
111
- packet = bytes (start + stream .readline ())
112
- return text_packet_cls (packet )
113
-
114
- # else loop and try again.
107
+ text_packet_cls = cls ._type_to_class .get (b"TX" , None )
108
+ # Is TextPacket registered?
109
+ # If so, read an entire line and pass that to TextPacket.
110
+ if text_packet_cls :
111
+ packet = bytes (start + stream .readline ())
112
+ return text_packet_cls (packet )
113
+
114
+ # else loop and try again.
115
115
116
116
header = bytes (start + packet_type )
117
117
packet_class = cls ._type_to_class .get (header , None )
You can’t perform that action at this time.
0 commit comments