updates

Dependencies:   FATFileSystem

Fork of SDFileSystem by Neil Thiessen

Revision:
8:7b6acbb6739b
Parent:
7:61db99e52c0d
Child:
9:1906befe7f30
--- 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;