[bug] short button

This commit is contained in:
IrvingGao committed 2024-05-30 01:57:15 +08:00
1 parent cb5836a9be
commit 3007313694
1 file changed
+1 -1
+1 -1
View File
@@ -69,7 +69,7 @@ class OrangePi(BaseHardware):
self.start_status_light()
while True:
button_status_1 = wiringpi.digitalRead(self.BUTTON_PIN_1)
button_status_1 = True if wiringpi.digitalRead(self.BUTTON_PIN_1) == 0 else False
if not button_status_1 and last_status_1:
press_time_1 = datetime.now()
elif button_status_1 and not last_status_1: