Skip to content

Commit 20da6a9

Browse files
committed
fix(esp_system): task wdt now checks the interrupt allocator return value
1 parent 95b303c commit 20da6a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_system/task_wdt/task_wdt_impl_timergroup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ esp_err_t esp_task_wdt_impl_timer_allocate(const esp_task_wdt_config_t *config,
106106
}
107107

108108
if (ret == ESP_OK) {
109-
esp_intr_alloc(TWDT_INTR_SOURCE, 0, callback, NULL, &ctx->intr_handle);
109+
ret = esp_intr_alloc(TWDT_INTR_SOURCE, 0, callback, NULL, &ctx->intr_handle);
110110
}
111111

112112
if (ret == ESP_OK) {

0 commit comments

Comments
 (0)