From a434688b429937cb0f029845e91aa1e3bb0b976b Mon Sep 17 00:00:00 2001 From: Brian Webb Date: Thu, 24 May 2012 18:04:42 -0700 Subject: [PATCH] Zero out watchdog register on init. --- flight/PiOS/STM32F10x/pios_wdg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/flight/PiOS/STM32F10x/pios_wdg.c b/flight/PiOS/STM32F10x/pios_wdg.c index e0b5b58d9..c8f41bf29 100644 --- a/flight/PiOS/STM32F10x/pios_wdg.c +++ b/flight/PiOS/STM32F10x/pios_wdg.c @@ -73,6 +73,7 @@ uint16_t PIOS_WDG_Init() // watchdog flags now stored in backup registers PWR_BackupAccessCmd(ENABLE); + BKP_WriteBackupRegister(PIOS_WDG_REGISTER, 0x0); wdg_configuration.bootup_flags = BKP_ReadBackupRegister(PIOS_WDG_REGISTER); #endif return delay;