From 78ff8540591011e3fd871dc508800e1ab7a7c886 Mon Sep 17 00:00:00 2001 From: Danielle Jenkins Date: Tue, 5 Nov 2019 19:16:08 -0800 Subject: [PATCH] Add sleep during wait to prevent maxing CPU. --- fusee-launcher.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fusee-launcher.py b/fusee-launcher.py index 5e65230..79a2b32 100755 --- a/fusee-launcher.py +++ b/fusee-launcher.py @@ -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.