mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-26 08:22:05 +08:00
rawgpsd: log + skip unknown responses (#26043)
* skip DIAG_EVENT_REPORT_F events * . Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
This commit is contained in:
committed by
GitHub
parent
8b5ebbddf6
commit
549452f84d
@@ -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