From 37f03c6f52c06e4b3ce8f58a5b5f3979fad1f9ba Mon Sep 17 00:00:00 2001 From: mryndzionek Date: Sun, 10 May 2015 13:54:36 +0200 Subject: [PATCH] lpc1768: propagate the timer setting result up --- cpu/lpc1768/periph/timer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cpu/lpc1768/periph/timer.c b/cpu/lpc1768/periph/timer.c index 8bfc6490de..2e503e0079 100644 --- a/cpu/lpc1768/periph/timer.c +++ b/cpu/lpc1768/periph/timer.c @@ -77,8 +77,7 @@ int timer_set(tim_t dev, int channel, unsigned int timeout) { if (dev == TIMER_0) { unsigned int now = timer_read(dev); - timer_set_absolute(dev, channel, now + timeout); - return 1; + return timer_set_absolute(dev, channel, now + timeout); } return -1; }