mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
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.
This commit is contained in:
parent
5552b92023
commit
4c9c3ab7d6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user