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

Error with sdfat and recording #202

Closed predomaquilare closed 8 months ago

predomaquilare commented 8 months ago

hello, i was trying to use the lib with my arduino nano, sd module and mic module i followed the instructions in wiki about recording and using the sdfat lib, like uncomment some lines in pcmconfig for the functions startrecording and stoprecording it solves, but now im with problems with the sdfat lib the error image is right below image

by the way sorry for the bad english

TMRh20 commented 8 months ago

Can you try opening TMRpcm.cpp and edit this line https://github.com/TMRh20/TMRpcm/blob/master/TMRpcm.cpp#L1853 Change to sFile.truncate(fPosition());

TMRh20 commented 8 months ago

Thanks @predomaquilare for posting this issue, it has been fixed and a new release made which should be available in 24hrs.