Open ercanersoy opened 6 years ago
Will not merge: The only necessary change is to print the output. The extra function is not needed, as the "files" command is just a file listing. you will never want to (nor should you) output the list of files to EEPROM, etc. It should just be a Serial.print( entry.name() );. Also, the last version of putchar( c ) is completely incorrect. putchar outputs a single character, and you're passing it a pointer to a string.
I'm delete the unneeded function and the line changed to Serial.println( entry.name() );.
Add outstring function and print filenames with outstring.