Slight tweak for more prectable sreen clearing
This commit is contained in:
parent
82d862058b
commit
03d1f8313c
@ -158,12 +158,13 @@ class Oled(Extension):
|
|||||||
return
|
return
|
||||||
|
|
||||||
def before_matrix_scan(self, sandbox):
|
def before_matrix_scan(self, sandbox):
|
||||||
if sandbox.active_layers[0] != self._prevLayers:
|
self.dim()
|
||||||
self._prevLayers = sandbox.active_layers[0]
|
if self._dark != self._go_dark:
|
||||||
self.updateOLED(sandbox)
|
|
||||||
elif self._dark != self._go_dark:
|
|
||||||
self._dark = self._go_dark
|
self._dark = self._go_dark
|
||||||
self.updateOLED(sandbox)
|
self.updateOLED(sandbox)
|
||||||
|
elif sandbox.active_layers[0] != self._prevLayers:
|
||||||
|
self._prevLayers = sandbox.active_layers[0]
|
||||||
|
self.updateOLED(sandbox)
|
||||||
return
|
return
|
||||||
|
|
||||||
def after_matrix_scan(self, keyboard):
|
def after_matrix_scan(self, keyboard):
|
||||||
@ -175,7 +176,6 @@ class Oled(Extension):
|
|||||||
return
|
return
|
||||||
|
|
||||||
def after_hid_send(self, sandbox):
|
def after_hid_send(self, sandbox):
|
||||||
self.dim()
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def on_powersave_enable(self, sandbox):
|
def on_powersave_enable(self, sandbox):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user