1
0
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:
Oleg Hahm 2015-05-10 21:54:53 +02:00
commit 68ab3aa046

View File

@ -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;
}