fix: zorro - date and time reset issue (#1643)

Fixes removal of battery or DFU connection causing RTC time and date  to be reset
This commit is contained in:
zyren
2022-02-28 11:09:02 +10:00
committed by GitHub
parent 79e0a212e7
commit 5f09d7fe39
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -135,6 +135,17 @@ void boardInit()
bluetoothInit(BLUETOOTH_DEFAULT_BAUDRATE, true);
#endif
#if defined (RADIO_ZORRO)
if (FLASH_OB_GetBOR() != OB_BOR_LEVEL3)
{
FLASH_OB_Unlock();
FLASH_OB_BORConfig(OB_BOR_LEVEL3);
FLASH_OB_Launch();
FLASH_OB_Lock();
}
#endif
pwrInit();
#if defined(AUTOUPDATE)