ayushsharma82 / ElegantOTA

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

Brakes at ElegantOTA.cpp -> Line 141 #186

Closed pranjal-joshi closed 4 months ago

pranjal-joshi commented 6 months ago

Hi @ayushsharma82 Both Demo and Async Demo fail with error. Tried v3.2.0 and v3.0.0

C:\Users\Pranjal Joshi\Documents\Arduino\libraries\ElegantOTA\src\ElegantOTA.cpp: In lambda function:
C:\Users\Pranjal Joshi\Documents\Arduino\libraries\ElegantOTA\src\ElegantOTA.cpp:141:71: error: 'FS_end' was not declared in this scope; did you mean 'va_end'?
  141 |         uint32_t update_size = mode == OTA_MODE_FILESYSTEM ? ((size_t)FS_end - (size_t)FS_start) : ((ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000);
      |                                                                       ^~~~~~
      |                                                                       va_end
C:\Users\Pranjal Joshi\Documents\Arduino\libraries\ElegantOTA\src\ElegantOTA.cpp:141:88: error: 'FS_start' was not declared in this scope; did you mean 'va_start'?
  141 |         uint32_t update_size = mode == OTA_MODE_FILESYSTEM ? ((size_t)FS_end - (size_t)FS_start) : ((ESP.getFreeSketchSpace() - 0x1000) & 0xFFFFF000);
      |                                                                                        ^~~~~~~~
      |                                                                                        va_start

exit status 1

Compilation error: exit status 1

Note that I've changed #define while trying Async demo.

Arduino IDE details:

Version: 2.3.2
Date: 2024-02-20T10:04:35.814Z
CLI Version: 0.35.3
github-actions[bot] commented 4 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 4 months ago

This issue was closed because it has been stalled for 5 days with no activity.