From 224a9fb71755183219ce7be2afa1dbbee9bd01ed Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 10 Mar 2024 14:08:29 +0100 Subject: [PATCH] Fix compile for upcoming Arduino Core 2.0.15 (#20908) * Fix compile for Arduino Core > 2.0.14 * missing include `esp_arduino_version.h` --- lib/libesp32/berry_tasmota/src/be_serial_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libesp32/berry_tasmota/src/be_serial_lib.c b/lib/libesp32/berry_tasmota/src/be_serial_lib.c index 3b2c4cfd7..183d7696e 100644 --- a/lib/libesp32/berry_tasmota/src/be_serial_lib.c +++ b/lib/libesp32/berry_tasmota/src/be_serial_lib.c @@ -6,7 +6,7 @@ * 2 wire communication - I2C *******************************************************************/ #include "be_constobj.h" -#include "esp_idf_version.h" +#include "esp_arduino_version.h" extern int b_serial_init(bvm *vm); extern int b_serial_deinit(bvm *vm); @@ -16,7 +16,7 @@ extern int b_serial_read(bvm *vm); extern int b_serial_available(bvm *vm); extern int b_serial_flush(bvm *vm); -#if ESP_IDF_VERSION_MAJOR < 5 +#if (ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(2, 0, 15)) #include "esp32-hal.h" #else // it should be #include "HardwareSerial.h"