Maybe surface errors in the right order

This commit is contained in:
Josh Klar 2018-10-16 22:30:33 -07:00
parent 16c82b1c0c
commit 0d94bf4c06
No known key found for this signature in database
GPG Key ID: 220F99BD7DB7A99E

View File

@ -58,16 +58,6 @@ class Firmware:
hid_helper = USB_HID
def __init__(self):
self.matrix = MatrixScanner(
cols=self.col_pins,
rows=self.row_pins,
diode_orientation=self.diode_orientation,
rollover_cols_every_rows=getattr(self, 'rollover_cols_every_rows', None),
swap_indicies=getattr(self, 'swap_indicies', None),
)
self._hid_helper_inst = self.hid_helper()
self._state = InternalState(self)
def _send_hid(self):
@ -80,6 +70,16 @@ class Firmware:
assert self.col_pins, 'no GPIO pins defined for matrix columns'
assert self.diode_orientation is not None, 'diode orientation must be defined'
self.matrix = MatrixScanner(
cols=self.col_pins,
rows=self.row_pins,
diode_orientation=self.diode_orientation,
rollover_cols_every_rows=getattr(self, 'rollover_cols_every_rows', None),
swap_indicies=getattr(self, 'swap_indicies', None),
)
self._hid_helper_inst = self.hid_helper()
if self.debug_enabled:
print("Firin' lazers. Keyboard is booted.")