Protected timeout callback from multiple access
@@ -99,7 +99,9 @@ espi_get_from_mbox_with_timeout_checks(esp_sys_mbox_t* b, void** m, uint32_t tim
}
wait_time = get_next_timeout_diff(); /* Get time to wait for next timeout execution */
if (wait_time == 0 || esp_sys_mbox_get(b, m, wait_time) == ESP_SYS_TIMEOUT) {
+ ESP_CORE_PROTECT();
process_next_timeout(); /* Process with next timeout */
+ ESP_CORE_UNPROTECT();
}
break;
} while (1);
