mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-05 05:01:54 +08:00
Merge branch 'bugfix/fix_wdt_panic_lead_to_panic_reenter' into 'master'
Fix ets_printf lead to panic reenter See merge request sdk/ESP8266_RTOS_SDK!577
This commit is contained in:
@ -150,7 +150,6 @@ static void panic_info(void *frame, int wdt)
|
||||
|
||||
if (wdt) {
|
||||
panic_str("Task watchdog got triggered.\r\n\r\n");
|
||||
show_critical_info();
|
||||
}
|
||||
|
||||
if (_chip_nmi_cnt) {
|
||||
@ -161,7 +160,7 @@ static void panic_info(void *frame, int wdt)
|
||||
|
||||
panic_stack(&_chip_nmi_stk, &LoadStoreErrorHandlerStack);
|
||||
} else {
|
||||
if (xPortInIsrContext()) {
|
||||
if (xPortInIsrContext() && !wdt) {
|
||||
extern StackType_t _chip_interrupt_stk, _chip_interrupt_tmp;
|
||||
|
||||
panic_str("Core 0 was running in ISR context:\r\n\r\n");
|
||||
|
Reference in New Issue
Block a user