Skip to content

Commit 2a6edd4

Browse files
committed
fix set brightness
1 parent 03f2f15 commit 2a6edd4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

circuitpython/utils/system.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@ def decrease_brightness(app=None) -> None:
2323
app.macropad.display.brightness = brightness
2424
app.macropad.pixels.brightness = brightness
2525
app.macropad.pixels.show()
26-
app.settings["brightness"] = brightness
2726

2827
def increase_brightness(app=None) -> None:
2928
if app.macropad.display.brightness < 1:
3029
brightness = (round(app.macropad.display.brightness * 10) + 1) / 10
3130
app.macropad.display.brightness = brightness
3231
app.macropad.pixels.brightness = brightness
33-
app.macropad.pixels.show()
34-
app.settings["brightness"] = brightness
32+
app.macropad.pixels.show()

0 commit comments

Comments
 (0)