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

This commit is contained in:
Adeeb Shihadeh
2022-10-05 17:13:48 -07:00
committed by GitHub
parent 6db9f051f7
commit 6a8a38b1a1

View File

@@ -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()