From 90da7e3d73c19cda99f9a486616179111afe51d5 Mon Sep 17 00:00:00 2001 From: IrvingGao <1729854488@qq.com> Date: Mon, 27 May 2024 23:48:11 +0800 Subject: [PATCH] update start light --- takway/board/orangepi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: