update nrf52 hal millis

This commit is contained in:
hathach
2018-03-29 18:10:01 +07:00
parent e2f9744369
commit 97db3c7c3d
4 changed files with 20 additions and 18 deletions

View File

@@ -118,7 +118,7 @@ void led_blinking_task(void)
static uint32_t last_blink = 0;
// not enough time
if ( last_blink + BLINK_INTEVAL > tusb_hal_tick_get() ) return;
if ( last_blink + BLINK_INTEVAL > tusb_hal_millis() ) return;
last_blink += BLINK_INTEVAL;