Skip to content

Commit

Permalink
Remove unused "sanity check"
Browse files Browse the repository at this point in the history
  • Loading branch information
xs5871 committed Jun 14, 2024
1 parent ff66c3b commit d50c209
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions kmk/kmk_keyboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,21 +268,6 @@ def _process_timeouts(self) -> None:
for task in get_due_task():
task()

def _init_sanity_check(self) -> None:
'''
Ensure the provided configuration is *probably* bootable
'''
assert self.keymap, 'must define a keymap with at least one row'
assert (
self.hid_type in HIDModes.ALL_MODES
), 'hid_type must be a value from kmk.consts.HIDModes'
if not self.matrix:
assert self.row_pins, 'no GPIO pins defined for matrix rows'
assert self.col_pins, 'no GPIO pins defined for matrix columns'
assert (
self.diode_orientation is not None
), 'diode orientation must be defined'

def _init_coord_mapping(self) -> None:
'''
Attempt to sanely guess a coord_mapping if one is not provided. No-op
Expand Down

0 comments on commit d50c209

Please sign in to comment.