TMRh20 / TMRpcm

Arduino library for asynchronous playback of PCM/WAV files direct from SD card. Arduino Uno,Nano,Mega etc supported
http://tmrh20.blogspot.com
597 stars 178 forks source link

Change 'filename' to 'const char*', 'datStr' from 'char*' to 'char [5]' #193

Closed brewmanz closed 1 year ago

brewmanz commented 1 year ago

Try to fix to compile on Arduino IDE 1.8.17, which grumbles about char* pointers to ROM. Also make datStr an array buffer rather than a pointer; note that data inside pointed-to string was being changed. This was desk checked code changes; this was not tested, as I don't have an SD card connected. However, it does allow me to compile the programme from https://www.instructables.com/Music-Player-Using-Arduino/

TMRh20 commented 1 year ago

Thanks for your contribution, sorry it took so long to review.