From ab6aa1838c01cb5f6eb9957f2ea4984aa5455e75 Mon Sep 17 00:00:00 2001 From: Josh Klar Date: Wed, 7 Jul 2021 13:00:27 -0700 Subject: [PATCH] chore: whatever it just took to get my PM2040 to boot --- boards/crkbd/main.py | 4 ++-- kmk/modules/split.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/crkbd/main.py b/boards/crkbd/main.py index 1997429..3834d0b 100644 --- a/boards/crkbd/main.py +++ b/boards/crkbd/main.py @@ -1,4 +1,4 @@ -from kb import KMKKeyboard, rgb_pixel_pin +from kb import KMKKeyboard from kmk.extensions.rgb import RGB from kmk.keys import KC from kmk.modules.layers import Layers @@ -7,7 +7,7 @@ from kmk.modules.split import Split, SplitSide, SplitType keyboard = KMKKeyboard() # Adding extensions -rgb = RGB(pixel_pin=rgb_pixel_pin, num_pixels=27, val_limit=100, hue_default=190, sat_default=100, val_default=5) +rgb = RGB(pixel_pin=keyboard.rgb_pixel_pin, num_pixels=27, val_limit=100, hue_default=190, sat_default=100, val_default=5) # TODO Comment one of these on each side split_side = SplitSide.LEFT diff --git a/kmk/modules/split.py b/kmk/modules/split.py index 23cfe6a..0de7e17 100644 --- a/kmk/modules/split.py +++ b/kmk/modules/split.py @@ -64,7 +64,7 @@ class Split(Module): self.UARTService = UARTService except ImportError: print('BLE Import error') - pass # BLE isn't supported on this platform + return # BLE isn't supported on this platform self._ble = BLERadio() self._ble_last_scan = ticks_ms() - 5000 self._connection_count = 0