pigeond: prevent locking up a CPU core (#25979)

pull/25977/head
Adeeb Shihadeh 3 years ago committed by GitHub
parent 6db9f051f7
commit 6a8a38b1a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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()

Loading…
Cancel
Save