mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-20 09:12:05 +08:00
@@ -187,6 +187,6 @@ class Tici(HardwareBase):
|
||||
def set_screen_brightness(self, percentage):
|
||||
try:
|
||||
with open("/sys/class/backlight/panel0-backlight/brightness", "w") as f:
|
||||
f.write(str(percentage * 10.23))
|
||||
f.write(str(int(percentage * 10.23)))
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user