Skip to content

Commit f4add07

Browse files
Weltenprinzespressif-bot
authored andcommitted
fix(esp_hw_support): Fix compile error on esp_cpu_int_has_handler on ESP32-P4
Merges espressif#15942 Closes espressif#15941
1 parent 7f46f61 commit f4add07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/esp_hw_support/include/esp_cpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ FORCE_INLINE_ATTR bool esp_cpu_intr_has_handler(int intr_num)
364364
#ifdef __XTENSA__
365365
has_handler = xt_int_has_handler(intr_num, esp_cpu_get_core_id());
366366
#else
367-
has_handler = intr_handler_get(intr_num);
367+
has_handler = intr_handler_get(intr_num) != NULL;
368368
#endif
369369
return has_handler;
370370
}

0 commit comments

Comments
 (0)