From 4c9c3ab7d682c95bb2965c44b6cbc9f2ec10c9d2 Mon Sep 17 00:00:00 2001 From: Laurent Navet Date: Sat, 10 Sep 2016 00:12:39 +0200 Subject: [PATCH] cpu/atmega_common: fix timer_set_absolute return code according to timer documentation, timer_set and timer_set_absolute should return 1 on succes, not 0. --- cpu/atmega_common/periph/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/atmega_common/periph/timer.c b/cpu/atmega_common/periph/timer.c index 5904adc1a0..e0d2c6f89c 100644 --- a/cpu/atmega_common/periph/timer.c +++ b/cpu/atmega_common/periph/timer.c @@ -141,7 +141,7 @@ int timer_set_absolute(tim_t tim, int channel, unsigned int value) *ctx[tim].flag &= ~(1 << (channel + OCF1A)); *ctx[tim].mask |= (1 << (channel + OCIE1A)); - return 0; + return 1; } int timer_clear(tim_t tim, int channel)