mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 11:32:21 +08:00
Locationd: only process valid log messages (#1761)
old-commit-hash: bfeefb6fd3498a14b27d6c83f5b254ab7113d3dd
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