diff options
Diffstat (limited to 'core/host/timer.c')
-rw-r--r-- | core/host/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/host/timer.c b/core/host/timer.c index 1c1fe01457..b29786b007 100644 --- a/core/host/timer.c +++ b/core/host/timer.c @@ -39,7 +39,7 @@ static int time_set; void usleep(unsigned us) { - if (!task_start_called()) { + if (!task_start_called() || task_get_current() == TASK_ID_INVALID) { udelay(us); return; } |