nrf5: Updating main.c to use MICROPY_PY_BLE_NUS as switch for regular uart initialization or bluetooth le uart initialization.

This commit is contained in:
Glenn Ruben Bakke 2017-02-04 16:08:42 +01:00
parent 918617d1eb
commit e9e98e777d

View File

@ -91,7 +91,7 @@ int main(int argc, char **argv) {
gc_init(&_heap_start, &_heap_end);
#if (BLUETOOTH_SD == 132)
#if MICROPY_PY_BLE_NUS
nrf52_ble_init();
#endif
@ -125,7 +125,7 @@ int main(int argc, char **argv) {
timer_init0();
*/
#if (BLUETOOTH_SD != 132)
#if (MICROPY_PY_BLE_NUS == 0)
uart_init0();
{
mp_obj_t args[2] = {