diff --git a/cpu/lpc1768/periph/timer.c b/cpu/lpc1768/periph/timer.c index 8bfc6490d..2e503e007 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; }