Possible fix/workaround for OSX frequency trimming
This commit is contained in:
parent
2e822375e0
commit
3ce6b565ef
@ -114,7 +114,11 @@ class StcBaseProtocol:
|
|||||||
|
|
||||||
# read and check frame start magic
|
# read and check frame start magic
|
||||||
packet = bytes()
|
packet = bytes()
|
||||||
packet += self.read_bytes_safe(1)
|
# XXX: skip extraneous 0xFE byte?
|
||||||
|
leading = self.read_bytes_safe(1)
|
||||||
|
if leading == 0xfe:
|
||||||
|
leading = self.read_bytes_safe(1)
|
||||||
|
packet += leading
|
||||||
# Some (?) BSL versions don't send a frame start with the status
|
# Some (?) BSL versions don't send a frame start with the status
|
||||||
# packet. Let's be liberal and accept that always, just in case.
|
# packet. Let's be liberal and accept that always, just in case.
|
||||||
if packet[0] == self.PACKET_MCU[0]:
|
if packet[0] == self.PACKET_MCU[0]:
|
||||||
|
Loading…
Reference in New Issue
Block a user