Hi all,
I'm having troubles using "openNext" funcion, with SdFatLib.
It works the first time i call the funcion (code below), but if i call it a second time, i got no results.
What is wrong? I know it'sa something really stupid, but can't sort it out.
Thanks for the help!
SdFile file;
char cnamefile[9];
while (file.openNext(sd1.vwd(), O_READ)) {
file.getFilename(cnamefile);
if (!file.isDir()) {
Serial.println(cnamefile);
}
file.close();
}
file.rewind();