Andy A / WakeUp

Fork of WakeUp by Erik -

Revision:
19:c1fc9bb48d2b
Parent:
18:e71f388710b7
Child:
20:1bd0c314f043
--- a/Device/WakeUp_LPC11u24.cpp	Thu Jun 25 08:18:26 2015 +0000
+++ b/Device/WakeUp_LPC11u24.cpp	Thu Jun 25 08:22:40 2015 +0000
@@ -62,9 +62,9 @@
     cycles_per_ms = count1 / 100.0;
 }
 
-uint32_t WakeUp::timeRemaining(void)
+float WakeUp::timeRemaining(void)
 {
-    return (uint32_t)((LPC_WWDT->TV - timeoutSet) / cycles_per_ms);
+    return (timeoutSet - LPC_WWDT->TV) / (cycles_per_ms*1000);
 }
 
 #endif