- UBX: fixed data loss when sync byte in payload

- refactored
This commit is contained in:
2026-03-16 17:00:11 +01:00
parent e004b71f3e
commit b5cd671ed4
3 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class UbxReceiver(MsgSink):
def on_recv(self, msg: MsgContainer):
data, hdr = frame_parse(msg.data)
print(f"{hdr.mclass}:{hdr.mid}:{data}")
print(f"{msg.name}:{self.name}:{hdr.mclass}:{hdr.mid}:data({len(data)}):{data}")
def is_msg(self, msg: MsgContainer):
hdr = frame_parse_hdr(msg.data)