diff options
Diffstat (limited to 'firmware/kernel.c')
-rw-r--r-- | firmware/kernel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c index f86a188d05..4ccf2bbe17 100644 --- a/firmware/kernel.c +++ b/firmware/kernel.c | |||
@@ -435,6 +435,11 @@ void sleep(int ticks) | |||
435 | unsigned stop = USEC_TIMER + ticks * (1000000/HZ); | 435 | unsigned stop = USEC_TIMER + ticks * (1000000/HZ); |
436 | while (TIME_BEFORE(USEC_TIMER, stop)) | 436 | while (TIME_BEFORE(USEC_TIMER, stop)) |
437 | switch_thread(); | 437 | switch_thread(); |
438 | #elif defined(CREATIVE_ZVM) && defined(BOOTLOADER) | ||
439 | // hacky.. | ||
440 | long sleep_ticks = current_tick + ticks + 1; | ||
441 | while (sleep_ticks > current_tick) | ||
442 | switch_thread(); | ||
438 | #else | 443 | #else |
439 | disable_irq(); | 444 | disable_irq(); |
440 | sleep_thread(ticks); | 445 | sleep_thread(ticks); |