PaulStoffregen / SD

70 stars 41 forks source link

Update format to correct issue with SDIO exFAT #42

Closed mjs513 closed 2 years ago

mjs513 commented 2 years ago

@PaulStoffregen - @KurtE

Added one extra call to card->synchDevice() in formatting function to correct the issue in @KurtE's post #1276, i.e.

Format of SD cards, does not always properly reset the MTP stuff in some cases..... Best Guess Issue: Our code in SD.format() has code in it to try to restart the file system with the new setup. And my guess is that this is not working fully for ExFat on SDIO

I tested with a 64GB exFAT card and Kurt tested with a 128GB exFAT card - seems to have resolved the issue.