mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-10-20 13:45:08 +08:00
feat(compatibility_upgrade): add function to get old SDK's target ap SSID and passowrd
Add error warning to check the wrong parition table.
This commit is contained in:
@@ -41,12 +41,8 @@ static inline void esp_reset_reason_clear_hint()
|
||||
|
||||
static inline uint32_t esp_reset_reason_get_hint(uint32_t hw_reset)
|
||||
{
|
||||
if (hw_reset == POWERON_RESET && rtc_sys_info.hint != ESP_RST_SW) {
|
||||
uint32_t *p = (uint32_t *)&rtc_sys_info;
|
||||
|
||||
for (int i = 0; i < RTC_SYS_RAM_SIZE / sizeof(uint32_t); i++)
|
||||
*p++ = 0;
|
||||
}
|
||||
if (hw_reset == POWERON_RESET && rtc_sys_info.hint != ESP_RST_SW)
|
||||
rtc_sys_info.hint = 0;
|
||||
|
||||
return rtc_sys_info.hint;
|
||||
}
|
||||
|
Reference in New Issue
Block a user