Allow pin overrides on splits

This commit is contained in:
Kyle Brown
2020-11-13 23:20:41 -08:00
parent 999a9507b5
commit 659201439f
3 changed files with 10 additions and 4 deletions

View File

@@ -89,6 +89,10 @@ class Split(Module):
name = str(getmount('/').label)
if self.split_type == SplitType.BLE:
self._ble.name = name
else:
# Try to guess data pins if not supplied
if not self.data_pin:
self.data_pin = keyboard.data_pin
# Detect split side from name
if self.split_side is None: