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

Fixed compile issue with SPIFFSEditor.cpp for ESP8266 #645

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

amente
Copy link

@amente amente commented Nov 11, 2019

This PR fixes a compile issue for SPIFFSEditor.cpp, when used for espressif8266 platform.

.pio\libdeps\nodemcuv2\ESP Async WebServer_ID306\src\SPIFFSEditor.cpp: In member function 'virtual void SPIFFSEditor::handleRequest(AsyncWebServerRequest*)':
.pio\libdeps\nodemcuv2\ESP Async WebServer_ID306\src\SPIFFSEditor.cpp:445:7: error: 'Dir' was not declared in this scope
       Dir dir = _fs.openDir(path);
       ^
.pio\libdeps\nodemcuv2\ESP Async WebServer_ID306\src\SPIFFSEditor.cpp:445:7: note: suggested alternative:
In file included from .pio\libdeps\nodemcuv2\ESP Async WebServer_ID306\src/ESPAsyncWebServer.h:27:0,
                 from .pio\libdeps\nodemcuv2\ESP Async WebServer_ID306\src\SPIFFSEditor.h:3,
                 from .pio\libdeps\nodemcuv2\ESP Async WebServer_ID306\src\SPIFFSEditor.cpp:1:
C:\Users\Amente\.platformio\packages\framework-arduinoespressif8266\cores\esp8266/FS.h:81:7: note:   'fs::Dir'
 class Dir {
       ^
.pio\libdeps\nodemcuv2\ESP Async WebServer_ID306\src\SPIFFSEditor.cpp:445:11: error: expected ';' before 'dir'
       Dir dir = _fs.openDir(path);
           ^
.pio\libdeps\nodemcuv2\ESP Async WebServer_ID306\src\SPIFFSEditor.cpp:453:13: error: 'dir' was not declared in this scope
       while(dir.next()){
             ^
*** [.pio\build\nodemcuv2\lib728\ESP Async WebServer_ID306\SPIFFSEditor.cpp.o] Error 1

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

Successfully merging this pull request may close these issues.

1 participant