mirror of
https://github.com/Qyriad/fusee-launcher.git
synced 2024-11-22 10:39:17 +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 sys
|
||||
import time
|
||||
import errno
|
||||
import ctypes
|
||||
import argparse
|
||||
@ -473,6 +474,7 @@ class RCMHax:
|
||||
if wait_for_device:
|
||||
print("Waiting for a TegraRCM device to come online...")
|
||||
while self.dev is None:
|
||||
time.sleep(0.5)
|
||||
self.dev = self._find_device(vid, pid)
|
||||
|
||||
# ... or bail out.
|
||||
|
Loading…
Reference in New Issue
Block a user