From e4716816c27343a847a2a525bca77d8ae88deeb3 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 14 Aug 2018 14:16:09 +0700 Subject: [PATCH] clean up --- src/main.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main.c b/src/main.c index a186681..6ff68bc 100644 --- a/src/main.c +++ b/src/main.c @@ -217,6 +217,9 @@ void board_init(void) // Init scheduler APP_SCHED_INIT(SCHED_MAX_EVENT_DATA_SIZE, SCHED_QUEUE_SIZE); + + // Init app timer (use RTC1) + app_timer_init(); } void board_teardown(void) @@ -363,15 +366,9 @@ int main(void) softdev_init(!sd_inited); sd_inited = true; - - // Init app timer (use RTC1) - app_timer_init(); } else { - // Init app timer (use RTC1) - app_timer_init(); - // otherwise USB for Serial & UF2 usb_init(); }