]> oss.titaniummirror.com Git - rgblamp.git/blobdiff - tmr.h
fix tmr_uwait() and tmr_mwait()
[rgblamp.git] / tmr.h
diff --git a/tmr.h b/tmr.h
index b25e8ad25473b4145f3e971c9d61627e27a5e1a0..a204ab000675ed0f362c26465e95c3cc010c0d21 100644 (file)
--- a/tmr.h
+++ b/tmr.h
@@ -99,7 +99,7 @@ void tmr_isr();
 #define tmr_cwait(c) \
   do { \
     unsigned t0 = TMR0; \
-    while (TMR0 - t0 <= c); /* cast prevents integral promotion */ \
+    while (TMR0 - t0 <= c); \
   } while (0)
 
 /* Wait for a number of us.  This is pretty accurate. */