BleuLlama / TinyBasicPlus

A C implementation of Tiny Basic, with a focus on support for Arduino
406 stars 118 forks source link

Fix bug of FILES command #44

Open ercanersoy opened 6 years ago

ercanersoy commented 6 years ago

Add outstring function and print filenames with outstring.

BleuLlama commented 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.

ercanersoy commented 6 years ago

I'm delete the unneeded function and the line changed to Serial.println( entry.name() );.