posix: Fix timer interval

Do not overwrite timer interval with initial interval in
_POSIX_Timer_Insert().

Close #2798.
This commit is contained in:
Sebastian Huber
2016-10-31 13:07:34 +01:00
parent 3e9f4c9232
commit bb9f09f34c

View File

@@ -35,8 +35,6 @@ static void _POSIX_Timer_Insert(
Watchdog_Interval ticks
)
{
ptimer->ticks = ticks;
/* The state really did not change but just to be safe */
ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;