Update kmk/extensions/oled.py

Co-authored-by: xs5871 <60395129+xs5871@users.noreply.github.com>
This commit is contained in:
regicidal.plutophage 2023-03-11 00:52:45 +03:00 committed by GitHub
parent f6ff00c087
commit c401fccd30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -240,7 +240,7 @@ class Oled(Extension):
self._powersave = False self._powersave = False
return return
def _oled_bri(self, *args, **kwargs): def _oled_brightness_increase(self):
self._display.brightness = ( self._display.brightness = (
self._display.brightness + self._brightness_step self._display.brightness + self._brightness_step
if self._display.brightness + self._brightness_step <= 1.0 if self._display.brightness + self._brightness_step <= 1.0