A re-written SDFileSystem library with improved compatibility, CRC support, and card removal/replacement support.

Dependencies:   FATFileSystem

Dependents:   xadow_m0_SD_Hello roam_v1 roam_v2 Polytech_tours ... more

Files at this revision

API Documentation at this revision

Comitter:
neilt6
Date:
Thu Aug 07 16:44:42 2014 +0000
Parent:
7:61db99e52c0d
Child:
9:1906befe7f30
Commit message:
Minor syntax improvement

Changed in this revision

SDFileSystem.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SDFileSystem.cpp	Fri Aug 01 15:00:36 2014 +0000
+++ b/SDFileSystem.cpp	Thu Aug 07 16:44:42 2014 +0000
@@ -277,8 +277,7 @@
     //Try to read the block up to 3 times
     for (int i = 0; i < 3; i++) {
         //Send CMD17(sector) to read a single block
-        char resp = writeCommand(CMD17, sector);
-        if (resp == 0x00) {
+        if (writeCommand(CMD17, sector) == 0x00) {
             //Try to read the sector, and return if successful
             if (readData((char*)buffer, 512))
                 return RES_OK;