mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-10 10:21:48 +00:00
make embedded_set_timer into nop if HAVE_TICKS is not defined
This commit is contained in:
parent
1ebc0173d4
commit
567720eb3d
@ -89,9 +89,11 @@ static int embedded_remove_data_source(data_source_t *ds){
|
||||
|
||||
// set timer
|
||||
static void embedded_set_timer(timer_source_t *ts, uint32_t timeout_in_ms){
|
||||
#ifdef HAVE_TICK
|
||||
uint32_t ticks = embedded_ticks_for_ms(timeout_in_ms);
|
||||
if (ticks == 0) ticks++;
|
||||
ts->timeout = system_ticks + ticks;
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user