mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 19:12:07 +08:00
add extra logging for rawgpsd opcode crash
old-commit-hash: 182c5c48102a8d719402eece658c16f36f3d7046
This commit is contained in:
@@ -179,6 +179,8 @@ def main() -> NoReturn:
|
||||
|
||||
while 1:
|
||||
opcode, payload = diag.recv()
|
||||
if opcode != DIAG_LOG_F:
|
||||
cloudlog.exception(f"Unhandled opcode: {opcode}")
|
||||
assert opcode == DIAG_LOG_F
|
||||
|
||||
(pending_msgs, log_outer_length), inner_log_packet = unpack_from('<BH', payload), payload[calcsize('<BH'):]
|
||||
|
||||
Reference in New Issue
Block a user