Skip to content
New issue

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

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

Already on GitHub? # to your account

Compilation error #22

Closed
jajito opened this issue Nov 28, 2022 · 5 comments · Fixed by #23
Closed

Compilation error #22

jajito opened this issue Nov 28, 2022 · 5 comments · Fixed by #23

Comments

@jajito
Copy link

jajito commented Nov 28, 2022

HI, I have changet the
#include <LITTLEFS.h>
to
#include <LittleFS.h>
and every LITTLEFS to LITTLEFS, as sugested by the manteiner of the library.
I platformio no appears any error or problem, but when compiling it appears a problem in ESPWebDAV.cpp:

include/ESPWebDAV.cpp:1091:48: error: invalid conversion from 'char*' to 'const uint8_t*' {aka 'const unsigned char*'} [-fpermissive]

Am I doing something wrong or forgot something?.
Thanks ini advance

@serisman
Copy link

serisman commented Nov 29, 2022

Changing line 1091 from: auto numWrite = file.write(buf + written, numRead - written);
to: auto numWrite = file.write((uint8_t*)buf + written, numRead - written);
seems to fix the compile error.

Still testing if this actually works or not...

UPDATE: it seems to work just fine!

@jajito
Copy link
Author

jajito commented Nov 29, 2022

Now it compiles!
Thanks serisman!

@jajito
Copy link
Author

jajito commented Dec 1, 2022

But doesn't work.
Doesn't send info of the files or folders to the FTP client...
The rest works ok...

@d-a-v
Copy link
Owner

d-a-v commented Jan 17, 2023

But doesn't work.
Doesn't send info of the files or folders to the FTP client...

Can you please give more input about your issue ?

@d-a-v d-a-v mentioned this issue Jan 18, 2023
@d-a-v
Copy link
Owner

d-a-v commented Jan 18, 2023

Changing line 1091 from: auto numWrite = file.write(buf + written, numRead - written); to:
auto numWrite = file.write((uint8_t*)buf + written, numRead - written);

fixed by #23

@d-a-v d-a-v closed this as completed Jul 16, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants