Fixes ip include on arduino 2.7.4 (#5620)

This commit is contained in:
Jimmy Hedman 2023-10-29 19:35:33 +01:00 committed by Jesse Hills
parent 35039b45e4
commit 1282a15b14
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -3,7 +3,11 @@
#include <string> #include <string>
#include <cstdio> #include <cstdio>
#include <array> #include <array>
#include "esphome/core/macros.h"
#if defined(USE_ESP_IDF) || defined(USE_LIBRETINY) || USE_ARDUINO_VERSION_CODE > VERSION_CODE(3, 0, 0)
#include <lwip/ip_addr.h> #include <lwip/ip_addr.h>
#endif
#if USE_ARDUINO #if USE_ARDUINO
#include <Arduino.h> #include <Arduino.h>