From 2ef1f8dff5795a2c03db5301597845dca3e6b300 Mon Sep 17 00:00:00 2001 From: IrvingGao <1729854488@qq.com> Date: Fri, 24 May 2024 23:06:32 +0800 Subject: [PATCH] [bug] board --- 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 20e7413..55911d7 100644 --- a/takway/board/orangepi.py +++ b/takway/board/orangepi.py @@ -75,7 +75,7 @@ class OrangePi(BaseHardware): press_duration = (datetime.now() - press_time_1).total_seconds() print(f"{datetime.now()}: press_duration: {press_duration}") if press_duration > 1: - self.long_power_status = not self.long_power_status + self.long_power_status = not self.long_power_status print(f"{datetime.now()}: long_power_status: {self.long_power_status} {self.short_power_status}") else: self.short_power_status = not self.short_power_status