Fixed a typo in the previous revision resulting in the "uninitialized

timer queried" fatal error.
This commit is contained in:
Alexey Kopytov
2012-03-25 10:10:32 +04:00
parent f6daa31d15
commit 35f42e0b0f

View File

@ -72,7 +72,7 @@ int sb_timer_initialized(sb_timer_t *t)
/* check whether the timer is running */
int sb_timer_running(sb_timer_t *t)
{
return t->state != TIMER_RUNNING;
return t->state == TIMER_RUNNING;
}
/* start timer */