Locationd: only process valid log messages (#1761)

pull/1763/head
Willem Melching 5 years ago committed by GitHub
parent 88f9266378
commit bfeefb6fd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/locationd/locationd.py

@ -304,7 +304,7 @@ def locationd_thread(sm, pm, disabled_logs=None):
sm.update() sm.update()
for sock, updated in sm.updated.items(): for sock, updated in sm.updated.items():
if updated: if updated and sm.valid[sock]:
t = sm.logMonoTime[sock] * 1e-9 t = sm.logMonoTime[sock] * 1e-9
if sock == "sensorEvents": if sock == "sensorEvents":
localizer.handle_sensors(t, sm[sock]) localizer.handle_sensors(t, sm[sock])

Loading…
Cancel
Save