mirror of
https://github.com/Qyriad/fusee-launcher.git
synced 2025-02-16 22:09:14 +01:00
Add sleep during wait to prevent maxing CPU.
This commit is contained in:
parent
28e3be4044
commit
78ff854059
@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
import errno
|
import errno
|
||||||
import ctypes
|
import ctypes
|
||||||
import argparse
|
import argparse
|
||||||
@ -473,6 +474,7 @@ class RCMHax:
|
|||||||
if wait_for_device:
|
if wait_for_device:
|
||||||
print("Waiting for a TegraRCM device to come online...")
|
print("Waiting for a TegraRCM device to come online...")
|
||||||
while self.dev is None:
|
while self.dev is None:
|
||||||
|
time.sleep(0.5)
|
||||||
self.dev = self._find_device(vid, pid)
|
self.dev = self._find_device(vid, pid)
|
||||||
|
|
||||||
# ... or bail out.
|
# ... or bail out.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user