diff --git a/sched/timer/timer_getoverrun.c b/sched/timer/timer_getoverrun.c index 90dae4ae8f..41c5eab55c 100644 --- a/sched/timer/timer_getoverrun.c +++ b/sched/timer/timer_getoverrun.c @@ -76,7 +76,7 @@ int timer_getoverrun(timer_t timerid) { UNUSED(timerid); - set_errno(ENOSYS); + set_errno(EINVAL); return ERROR; }