Add BLE and EZKey module defines.

Also restored serial init back to original location. Was getting junk data.
master
Travis La Marr 2017-03-24 17:14:57 -04:00
parent b4ac0598fa
commit 43eee52cba
2 changed files with 6 additions and 4 deletions

View File

@ -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)

View File

@ -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