From 59d3f4bd4fda8ed7471ff4fed4574a76dd5862b1 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Sat, 29 Jan 2022 21:10:02 +0100 Subject: [PATCH] Fixed shitty arduino compile with newer idf --- cores/esp32/esp32-hal-rmt.c | 4 ++++ 1 file changed, 4 insertions(+) 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"