Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: SDFileSystem.cpp
- 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;