Allow use when ``split`` is not defined

This commit is contained in:
regicidal.plutophage 2023-03-04 22:15:57 +00:00
parent fbb0b23e3f
commit 8627e8c7c5

View File

@ -190,6 +190,7 @@ class Oled(Extension):
return
def during_bootup(self, keyboard):
if self._split is not None:
if self._split.split_side == 1:
self.split_side = 'L'
self._flip = self._flip_left
@ -208,7 +209,6 @@ class Oled(Extension):
brightness=self._brightness,
)
self.render_oled(0)
print(self.split_side)
return
def before_matrix_scan(self, sandbox):