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:
parent
918617d1eb
commit
e9e98e777d
@ -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] = {
|
||||
|
Loading…
Reference in New Issue
Block a user