fix(esp_system): task wdt now checks the interrupt allocator return value

This commit is contained in:
Omar Chebib
2025-06-26 11:38:38 +08:00
parent 95b303cd8a
commit 20da6a9a5c

View File

@@ -106,7 +106,7 @@ esp_err_t esp_task_wdt_impl_timer_allocate(const esp_task_wdt_config_t *config,
}
if (ret == ESP_OK) {
esp_intr_alloc(TWDT_INTR_SOURCE, 0, callback, NULL, &ctx->intr_handle);
ret = esp_intr_alloc(TWDT_INTR_SOURCE, 0, callback, NULL, &ctx->intr_handle);
}
if (ret == ESP_OK) {