diff --git a/takway/board/orangepi.py b/takway/board/orangepi.py index 8b5f0ca..39fad13 100644 --- a/takway/board/orangepi.py +++ b/takway/board/orangepi.py @@ -61,12 +61,12 @@ class OrangePi(BaseHardware): hd_threads = [threading.Thread(target=self.hd_detection_loop)] for hd_thread in hd_threads: hd_thread.start() - self.start_status_light() def hd_detection_loop(self): last_status_1 = False press_time_1 = None + self.start_status_light() while True: button_status_1 = wiringpi.digitalRead(self.BUTTON_PIN_1) if not button_status_1 and last_status_1: