Fixed SDFileSystem when no card present (pull request).

Dependencies:   FATFileSystem

Dependents:   ILI9341_Clock_Nucleo

Fork of SDFileSystem by mbed official

Files at this revision

API Documentation at this revision

Comitter:
Olivier
Date:
Sat Feb 15 02:21:21 2014 +0000
Parent:
3:eb62908681e9
Child:
5:96428c0b7119
Commit message:
Fixed _is_initialized condition.

Changed in this revision

SDFileSystem.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/SDFileSystem.cpp	Sat Feb 15 01:31:28 2014 +0000
+++ b/SDFileSystem.cpp	Sat Feb 15 02:21:21 2014 +0000
@@ -201,7 +201,7 @@
 
 int SDFileSystem::disk_initialize() {
     _is_initialized = initialise_card();
-    if (_is_initialized != 0) {
+    if (_is_initialized == 0) {
         debug("Fail to initialize card\n");
         return 1;
     }