mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-20 20:32:06 +08:00
Locationd: only process valid log messages (#1761)
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user