From 07a6d3fa7613a9ec2950f1cb26083e1d2c105b73 Mon Sep 17 00:00:00 2001 From: IrvingGao <1729854488@qq.com> Date: Thu, 30 May 2024 02:10:28 +0800 Subject: [PATCH] [bug] short button --- 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 d6fc8dd..dd6d68f 100644 --- a/takway/board/orangepi.py +++ b/takway/board/orangepi.py @@ -85,7 +85,7 @@ class OrangePi(BaseHardware): # print(f"{datetime.now()}: short_power_status: {self.short_power_status} {self.long_power_status}") print(f"{datetime.now()}: button_status: {button_status_1}, last_button_status: {last_status_1}, power_status: {self.long_power_status}, interrupt_status: {self.short_power_status}") press_time_1 = None - + # TODO: 如果button_status_1和上一帧都是True or False,则判断为无效按键,忽略 last_status_1 = button_status_1 # 更新LED状态