mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 12:02:09 +08:00
rawgpsd: log + skip unknown responses (#26043)
* skip DIAG_EVENT_REPORT_F events * . Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com> old-commit-hash: 549452f84d0f06a92d5c03b710a300acefe8673d
This commit is contained in:
committed by
GitHub
parent
e0a63d7041
commit
cadd6be7a1
@@ -180,7 +180,8 @@ def main() -> NoReturn:
|
||||
while 1:
|
||||
opcode, payload = diag.recv()
|
||||
if opcode != DIAG_LOG_F:
|
||||
cloudlog.exception(f"Unhandled opcode: {opcode}")
|
||||
cloudlog.error(f"Unhandled opcode: {opcode}")
|
||||
continue
|
||||
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