From 817843558b29fa9766d95206cd508aed5d2be30e Mon Sep 17 00:00:00 2001 From: fvanroie <15969459+fvanroie@users.noreply.github.com> Date: Thu, 24 Feb 2022 16:41:43 +0100 Subject: [PATCH] Update Lanbon for Arduino v1 and v2 --- src/dev/esp32/lanbonl8.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dev/esp32/lanbonl8.cpp b/src/dev/esp32/lanbonl8.cpp index f1c034b4..5104c7ba 100644 --- a/src/dev/esp32/lanbonl8.cpp +++ b/src/dev/esp32/lanbonl8.cpp @@ -9,10 +9,12 @@ #include "dev/esp32/esp32.h" #include "driver/pcnt.h" // Pulse count driver +#if ESP_ARDUINO_VERSION_MAJOR >= 2 #include "hal/pcnt_hal.h" #include "hal/gpio_hal.h" #include "soc/pcnt_periph.h" #include "esp_rom_gpio.h" +#endif #include "driver/adc.h" #include "esp_adc_cal.h"