Allows continuation of firmware if bluetooth can't be imported

This commit is contained in:
Kyle Brown 2020-09-28 17:37:02 -07:00
parent fba97fc364
commit e225d8b1d6

View File

@ -7,7 +7,12 @@ import busio
import gc
from kmk import led, rgb
from kmk.ble import BLEHID
try:
from kmk.ble import BLEHID
except ImportError:
print('Bluetooth is unsupported ')
from kmk.consts import KMK_RELEASE, LeaderMode, UnicodeMode
from kmk.hid import USBHID, AbstractHID, HIDModes
from kmk.internal_state import InternalState