From 6a8a38b1a13b678bddbfdbcf5ba438bd7516c9be Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 5 Oct 2022 17:13:48 -0700 Subject: [PATCH] pigeond: prevent locking up a CPU core (#25979) --- selfdrive/sensord/pigeond.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/selfdrive/sensord/pigeond.py b/selfdrive/sensord/pigeond.py index e1fa2f4cad..f47cefed6c 100755 --- a/selfdrive/sensord/pigeond.py +++ b/selfdrive/sensord/pigeond.py @@ -251,6 +251,9 @@ def main(): msg = messaging.new_message('ubloxRaw', len(dat)) msg.ubloxRaw = dat[:] pm.send('ubloxRaw', msg) + else: + # prevent locking up a CPU core if ublox disconnects + time.sleep(0.001) if __name__ == "__main__": main()