From bfeefb6fd3498a14b27d6c83f5b254ab7113d3dd Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Mon, 22 Jun 2020 14:41:15 -0700 Subject: [PATCH] Locationd: only process valid log messages (#1761) --- selfdrive/locationd/locationd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/locationd/locationd.py b/selfdrive/locationd/locationd.py index cf621386dc..3a5d515538 100755 --- a/selfdrive/locationd/locationd.py +++ b/selfdrive/locationd/locationd.py @@ -304,7 +304,7 @@ def locationd_thread(sm, pm, disabled_logs=None): sm.update() for sock, updated in sm.updated.items(): - if updated: + if updated and sm.valid[sock]: t = sm.logMonoTime[sock] * 1e-9 if sock == "sensorEvents": localizer.handle_sensors(t, sm[sock])