Skip to content

Commit 6c98e07

Browse files
committed
OTA: ESP32 fix build on core 3.0.0
1 parent dd4c09d commit 6c98e07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ota/implementation/OTAEsp32.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
#if defined(ARDUINO_ARCH_ESP32) && OTA_ENABLED
1313
#include "OTAEsp32.h"
1414
#include <esp_ota_ops.h>
15+
#if defined __has_include
16+
#if __has_include(<spi_flash_mmap.h>)
17+
#include <spi_flash_mmap.h>
18+
#endif
19+
#endif
1520
#include <Update.h>
1621

1722
ESP32OTACloudProcess::ESP32OTACloudProcess(MessageStream *ms, Client* client)

0 commit comments

Comments
 (0)