From f4add076a8d2300e96b929870cdcd9ea010e109a Mon Sep 17 00:00:00 2001 From: Weltenprinz <101975591+Weltenprinz@users.noreply.github.com> Date: Tue, 13 May 2025 08:05:56 +0200 Subject: [PATCH] fix(esp_hw_support): Fix compile error on esp_cpu_int_has_handler on ESP32-P4 Merges https://github.com/espressif/esp-idf/pull/15942 Closes https://github.com/espressif/esp-idf/issues/15941 --- components/esp_hw_support/include/esp_cpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_hw_support/include/esp_cpu.h b/components/esp_hw_support/include/esp_cpu.h index af93528ba8..1ae8d4daa2 100644 --- a/components/esp_hw_support/include/esp_cpu.h +++ b/components/esp_hw_support/include/esp_cpu.h @@ -364,7 +364,7 @@ FORCE_INLINE_ATTR bool esp_cpu_intr_has_handler(int intr_num) #ifdef __XTENSA__ has_handler = xt_int_has_handler(intr_num, esp_cpu_get_core_id()); #else - has_handler = intr_handler_get(intr_num); + has_handler = intr_handler_get(intr_num) != NULL; #endif return has_handler; }