mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-18 01:46:09 +00:00
Add BLE and EZKey module defines.
Also restored serial init back to original location. Was getting junk data.
This commit is contained in:
parent
b4ac0598fa
commit
43eee52cba
2 changed files with 6 additions and 4 deletions
|
@ -99,10 +99,12 @@ endif
|
|||
|
||||
ifeq ($(strip $(BLUETOOTH)), AdafruitBLE)
|
||||
TMK_COMMON_DEFS += -DBLUETOOTH_ENABLE
|
||||
TMK_COMMON_DEFS += -DMODULE_ADAFRUIT_BLE
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(BLUETOOTH)), AdafruitEZKey)
|
||||
TMK_COMMON_DEFS += -DBLUETOOTH_ENABLE
|
||||
TMK_COMMON_DEFS += -DMODULE_ADAFRUIT_EZKEY
|
||||
endif
|
||||
|
||||
ifeq ($(strip $(ONEHAND_ENABLE)), yes)
|
||||
|
|
|
@ -1125,6 +1125,10 @@ int main(void)
|
|||
// midi_send_noteoff(&midi_device, 0, 64, 127);
|
||||
#endif
|
||||
|
||||
#ifdef MODULE_ADAFRUIT_EZKEY
|
||||
serial_init();
|
||||
#endif
|
||||
|
||||
/* wait for USB startup & debug output */
|
||||
|
||||
#ifdef WAIT_FOR_USB
|
||||
|
@ -1173,10 +1177,6 @@ int main(void)
|
|||
rgblight_task();
|
||||
#endif
|
||||
|
||||
#ifdef MODULE_ADAFRUIT_EZKEY
|
||||
serial_init();
|
||||
#endif
|
||||
|
||||
#ifdef MODULE_ADAFRUIT_BLE
|
||||
adafruit_ble_task();
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue