mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Zero out watchdog register on init.
This commit is contained in:
parent
8b98d48fc4
commit
a434688b42
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user