rawgpsd: log + skip unknown responses (#26043)

* skip DIAG_EVENT_REPORT_F events

* .

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 549452f84d
taco
Kurt Nistelberger 3 years ago committed by GitHub
parent e0a63d7041
commit cadd6be7a1
  1. 3
      selfdrive/sensord/rawgps/rawgpsd.py

@ -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'):]

Loading…
Cancel
Save