From 567720eb3da887af8099210b9584b4d260885265 Mon Sep 17 00:00:00 2001 From: "mila@ringwald.ch" Date: Thu, 24 Apr 2014 23:18:30 +0000 Subject: [PATCH] make embedded_set_timer into nop if HAVE_TICKS is not defined --- src/run_loop_embedded.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/run_loop_embedded.c b/src/run_loop_embedded.c index b9c8e325d..040932b86 100644 --- a/src/run_loop_embedded.c +++ b/src/run_loop_embedded.c @@ -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 } /**