Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'U_SPIFFS' was not declared in this scope #4

Closed
carlosm9272 opened this issue May 20, 2020 · 1 comment
Closed

'U_SPIFFS' was not declared in this scope #4

carlosm9272 opened this issue May 20, 2020 · 1 comment

Comments

@carlosm9272
Copy link

Hi,
Thanks a lot for your code and contribution! - Just a little comment from my side, when compile for ESP8266 board there is an error due to a difference between updater.h and update.h, "'U_SPIFFS' was not declared in this scope". Possibly the only change it needs is the segregation bewteen U_FS and U_SPIFFS:
#ifdef ESP8266 int cmd = (filename.indexOf("spiffs") > -1) ? U_FS : U_FLASH; #else int cmd = (filename.indexOf("spiffs") > -1) ? U_SPIFFS : U_FLASH; #endif

@anthonysleck
Copy link

anthonysleck commented Jun 24, 2020

As stated above, comment out line 42 and add the differentiation of the ESP32 and the ESP8266 updaters like below. It works perfectly. Thanks.

//int cmd = (filename.indexOf("spiffs") > -1) ? U_SPIFFS : U_FLASH;
#ifdef ESP8266
int cmd = (filename.indexOf("spiffs") > -1) ? U_FS : U_FLASH;
#else
int cmd = (filename.indexOf("spiffs") > -1) ? U_SPIFFS : U_FLASH;
#endif

lbernstone added a commit that referenced this issue Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants