Update oled.py

This commit is contained in:
regicidal.plutophage 2023-03-01 09:42:46 +03:00 committed by GitHub
parent 40f03a73ea
commit b5cf50b819
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,8 +147,8 @@ class Oled(Extension):
self.updateOLED(sandbox)
return
def after_matrix_scan(self, keyboard):
if keyboard.matrix_update or keyboard.secondary_matrix_update:
def after_matrix_scan(self, sandbox):
if sandbox.matrix_update or sandbox.secondary_matrix_update:
self.timer_time_reset()
return
@ -197,4 +197,4 @@ class Oled(Extension):
if self._display.brightness > 0.5:
self._display.brightness = 0.5
else: self._display.brightness = (self._brightness)
return
return