diff --git a/takway/board/orangepi.py b/takway/board/orangepi.py index 0685ea2..e4da1c8 100644 --- a/takway/board/orangepi.py +++ b/takway/board/orangepi.py @@ -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: