add reboot after nvm re-init

This commit is contained in:
Yunhorn 2025-05-15 17:55:14 +08:00
parent 5da52a8702
commit ee94fd5112
2 changed files with 1 additions and 0 deletions

View File

@ -3046,6 +3046,7 @@ void STS_REBOOT_CONFIG_Init(void)
OnStoreSTSCFGContextRequest();
//UTIL_MEM_set_8((void *)sts_ac_code, 0x00, YUNHORN_STS_AC_CODE_SIZE);
HAL_Delay(1000);
NVIC_SystemReset();
} else
{
UTIL_MEM_cpy_8(sts_cfg_nvm_factory_default, nvm_stored_value+YUNHORN_STS_MAX_NVM_CFG_SIZE, YUNHORN_STS_MAX_NVM_CFG_SIZE);

Binary file not shown.