+++

Fork of Watchdog by David Smart

Revision:
7:3c9146d9a65f
Parent:
5:2dad2a78ffbd
--- a/Watchdog.cpp	Mon Mar 16 01:04:32 2015 +0000
+++ b/Watchdog.cpp	Mon Aug 08 08:06:41 2016 +0000
@@ -76,10 +76,10 @@
 }
 
 /// Load timeout value in watchdog timer and enable
-void Watchdog::Configure(int pr) {
+void Watchdog::Configure(float timeout) {
     // http://www.st.com/web/en/resource/technical/document/reference_manual/CD00171190.pdf
     IWDG->KR  = 0x5555;         // enable write to PR, RLR
-    IWDG->PR  = pr;             // Init prescaler, page 486 Reference Manual
+    IWDG->PR  = timeout;             // Init prescaler, page 486 Reference Manual
     IWDG->RLR = 0xFFF;          // Init RLR
     IWDG->KR  = 0xAAAA;         // Reload the watchdog
     IWDG->KR  = 0xCCCC;         // Starts the WD