[bug] board

This commit is contained in:
IrvingGao 2024-05-24 23:06:32 +08:00
parent a41c0001c3
commit 2ef1f8dff5
1 changed files with 1 additions and 1 deletions

View File

@ -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