summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/export/system.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h
index 3c161a1..de1672a 100644
--- a/firmware/export/system.h
+++ b/firmware/export/system.h
@@ -39,8 +39,8 @@ extern unsigned int ipod_hw_rev;
static inline void udelay(unsigned usecs)
{
- unsigned start = USEC_TIMER;
- while ((USEC_TIMER - start) < usecs);
+ unsigned stop = USEC_TIMER + usecs;
+ while (TIME_AFTER(USEC_TIMER, stop));
}
unsigned int current_core(void);