mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #2958 from mryndzionek/ret_status_fix
Propagate the return status
This commit is contained in:
commit
68ab3aa046
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user