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

old-commit-hash: 6a8a38b1a13b678bddbfdbcf5ba438bd7516c9be
This commit is contained in:
Adeeb Shihadeh
2022-10-05 17:13:48 -07:00
committed by GitHub
parent c32368fd20
commit a7b67fec01
+3
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()