fix(lint): lint all the things; be more flexible in boards dir
This commit is contained in:
@@ -43,7 +43,7 @@ class ModTap(Module):
|
||||
return keyboard
|
||||
|
||||
def mt_released(self, key, keyboard, *args, **kwargs):
|
||||
''' On keyup, check timer, and press key if needed.'''
|
||||
'''On keyup, check timer, and press key if needed.'''
|
||||
keyboard.keys_pressed.discard(key.meta.mods)
|
||||
if self._mod_tap_timer and (
|
||||
accurate_ticks_diff(
|
||||
|
@@ -2,11 +2,11 @@
|
||||
import busio
|
||||
from micropython import const
|
||||
|
||||
from kmk.hid import HIDModes
|
||||
from storage import getmount
|
||||
|
||||
from kmk.kmktime import ticks_diff, ticks_ms
|
||||
from kmk.matrix import intify_coordinate
|
||||
from kmk.modules import Module
|
||||
from storage import getmount
|
||||
|
||||
|
||||
class SplitSide:
|
||||
@@ -141,8 +141,10 @@ class Split(Module):
|
||||
def after_matrix_scan(self, keyboard):
|
||||
if keyboard.matrix_update:
|
||||
if self.split_type == SplitType.UART and self._is_target:
|
||||
pass # explicit pass just for dev sanity...
|
||||
elif self.split_type == SplitType.UART and (self.data_pin2 or not self._is_target):
|
||||
pass # explicit pass just for dev sanity...
|
||||
elif self.split_type == SplitType.UART and (
|
||||
self.data_pin2 or not self._is_target
|
||||
):
|
||||
self._send_uart(keyboard.matrix_update)
|
||||
elif self.split_type == SplitType.BLE:
|
||||
self._send_ble(keyboard.matrix_update)
|
||||
|
Reference in New Issue
Block a user