diff --git a/cores/esp32/esp32-hal-rmt.c b/cores/esp32/esp32-hal-rmt.c index 62964d76..50755509 100644 --- a/cores/esp32/esp32-hal-rmt.c +++ b/cores/esp32/esp32-hal-rmt.c @@ -21,7 +21,11 @@ #include "esp8266-compat.h" #include "soc/gpio_reg.h" #include "soc/rmt_struct.h" +#ifdef OLD_IDF #include "esp_private/periph_ctrl.h" +#else +#include "driver/periph_ctrl.h" +#endif #include "esp_intr_alloc.h" #include "hal/rmt_ll.h" #include "driver/rmt.h"