Was this tested for the SD Cards ? - Seems like 'FILES' cmd does not work.
Was this tested for the SD Cards ?
- I formatted both 2GB and 256MB SD Cards with the SD Card Formatter app.
- When I enter 'FILES' cmd , it just return lines of garbage (one line per filename ?)
- I tried 'SAVE' cmd saving a basic program ; 'FILES' cmd still returns garbage , but oddly SD Card linked to PC sees the saved file and the basic code.
If the card has any files - then 'FILES' cmd returns garbage lines. If the card is empty - then 'FILES' cmd just returns an empty line.
I repeatedly formatted and tested the SD Cards.
Seems like 'FILES' cmd does not work.
- corrupted stream ? - not waiting for characters ready ? ... ?
:(
Fairly simple mistake in the code. On line 2253 of the code, in the cmd_Files function, the printmsgNoNL function is used to print the file name. That function prints from flash memory, while the file name is stored in ram, resulting in random data being printed. Potential solutions are to add a similar function for printing from ram, or printing the file name directly from the cmd_Files function, since this is the only place it would be needed.
< edit > Just noticed, there is an open pull request from July 25, 2018 to correct this problem, but apparently no action has been taken on that.