clean up
This commit is contained in:
parent
4eee219b5a
commit
e4716816c2
@ -217,6 +217,9 @@ void board_init(void)
|
|||||||
|
|
||||||
// Init scheduler
|
// Init scheduler
|
||||||
APP_SCHED_INIT(SCHED_MAX_EVENT_DATA_SIZE, SCHED_QUEUE_SIZE);
|
APP_SCHED_INIT(SCHED_MAX_EVENT_DATA_SIZE, SCHED_QUEUE_SIZE);
|
||||||
|
|
||||||
|
// Init app timer (use RTC1)
|
||||||
|
app_timer_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
void board_teardown(void)
|
void board_teardown(void)
|
||||||
@ -363,15 +366,9 @@ int main(void)
|
|||||||
|
|
||||||
softdev_init(!sd_inited);
|
softdev_init(!sd_inited);
|
||||||
sd_inited = true;
|
sd_inited = true;
|
||||||
|
|
||||||
// Init app timer (use RTC1)
|
|
||||||
app_timer_init();
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Init app timer (use RTC1)
|
|
||||||
app_timer_init();
|
|
||||||
|
|
||||||
// otherwise USB for Serial & UF2
|
// otherwise USB for Serial & UF2
|
||||||
usb_init();
|
usb_init();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user