ayushsharma82 / ElegantOTA

OTA updates made slick and simple for everyone!
https://elegantota.pro
GNU Affero General Public License v3.0
643 stars 119 forks source link

FS_start and FS_end not declared in ElegantOTA.cpp #138

Closed ea1dof closed 1 year ago

ea1dof commented 1 year ago

Hi:

I was just compiling the AsyncDemo.ino example for an ESP8266, using PlatoformIO, but it refuses to compile ElegantOTA.cpp, with the following error:

pio\libdeps\d1_mini\ElegantOTA\src\ElegantOTA.cpp:76:71: error: 'FS_end' was not declared in this scope; did you mean 'va_end'? 76 uint32_t update_size = mode == OTA_MODE_FILESYSTEM ? ((size_t)FS_end - (size_t)FS_start) : ((ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000); ^~ va_end .pio\libdeps\d1_mini\ElegantOTA\src\ElegantOTA.cpp:76:88: error: 'FS_start' was not declared in this scope; did you mean 'va_start'? 76 uint32_t update_size = mode == OTA_MODE_FILESYSTEM ? ((size_t)FS_end - (size_t)FS_start) : ((ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000);

Since this is the vanilla example, I was expecting that it should have compiled without any changes (other than setting the build_flags for async mode).

Any hint?

/Miguel

ea1dof commented 1 year ago

Answering to myself and closing the issue:

I upgraded the "Expressif 8266" platform in PlatformIO, now on version 4.2.1, which ended up installing platformio/framework-arduinoespressif8266 @ ~3.30102.0

Now the code compile nicely.