Allow use when ``split
`` is not defined
This commit is contained in:
parent
fbb0b23e3f
commit
8627e8c7c5
@ -190,6 +190,7 @@ class Oled(Extension):
|
|||||||
return
|
return
|
||||||
|
|
||||||
def during_bootup(self, keyboard):
|
def during_bootup(self, keyboard):
|
||||||
|
if self._split is not None:
|
||||||
if self._split.split_side == 1:
|
if self._split.split_side == 1:
|
||||||
self.split_side = 'L'
|
self.split_side = 'L'
|
||||||
self._flip = self._flip_left
|
self._flip = self._flip_left
|
||||||
@ -208,7 +209,6 @@ class Oled(Extension):
|
|||||||
brightness=self._brightness,
|
brightness=self._brightness,
|
||||||
)
|
)
|
||||||
self.render_oled(0)
|
self.render_oled(0)
|
||||||
print(self.split_side)
|
|
||||||
return
|
return
|
||||||
|
|
||||||
def before_matrix_scan(self, sandbox):
|
def before_matrix_scan(self, sandbox):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user