From 2d136acccec8f209851cecaf2b9696e85050b229 Mon Sep 17 00:00:00 2001 From: JDavid Date: Tue, 17 Oct 2023 09:35:54 -0500 Subject: [PATCH] Fix build when using latest version of Arduino ESP32 (v3.0.0 and IDF v5.1) --- src/platform/OneWireNg_ArduinoIdfESP32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/OneWireNg_ArduinoIdfESP32.cpp b/src/platform/OneWireNg_ArduinoIdfESP32.cpp index 29a43c4..c9c7fb8 100644 --- a/src/platform/OneWireNg_ArduinoIdfESP32.cpp +++ b/src/platform/OneWireNg_ArduinoIdfESP32.cpp @@ -26,13 +26,13 @@ !(defined(ARDUINO_ARCH_ESP8266) || defined(CONFIG_IDF_TARGET_ESP8266)) #include #include "platform/Platform_TimeCritical.h" +#include "driver/gpio.h" +#include "soc/gpio_periph.h" #ifdef ARDUINO # include "Arduino.h" #else /* ESP-IDF */ -# include "driver/gpio.h" -# include "soc/gpio_periph.h" # define INPUT 0x01 # define OUTPUT 0x02