rawgpsd: log + skip unknown responses (#26043)

* skip DIAG_EVENT_REPORT_F events

* .

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
pull/25947/head^2
Kurt Nistelberger 3 years ago committed by GitHub
parent 8b5ebbddf6
commit 549452f84d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      selfdrive/sensord/rawgps/rawgpsd.py

@ -180,7 +180,8 @@ def main() -> NoReturn:
while 1: while 1:
opcode, payload = diag.recv() opcode, payload = diag.recv()
if opcode != DIAG_LOG_F: if opcode != DIAG_LOG_F:
cloudlog.exception(f"Unhandled opcode: {opcode}") cloudlog.error(f"Unhandled opcode: {opcode}")
continue
assert opcode == DIAG_LOG_F assert opcode == DIAG_LOG_F
(pending_msgs, log_outer_length), inner_log_packet = unpack_from('<BH', payload), payload[calcsize('<BH'):] (pending_msgs, log_outer_length), inner_log_packet = unpack_from('<BH', payload), payload[calcsize('<BH'):]

Loading…
Cancel
Save