make embedded_set_timer into nop if HAVE_TICKS is not defined

This commit is contained in:
mila@ringwald.ch 2014-04-24 23:18:30 +00:00
parent 1ebc0173d4
commit 567720eb3d

View File

@ -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
}
/**