Fixed SDFileSystem when no card present (pull request).

Dependencies:   FATFileSystem

Dependents:   ILI9341_Clock_Nucleo

Fork of SDFileSystem by mbed official

Revision:
4:e3161f629541
Parent:
3:eb62908681e9
Child:
5:96428c0b7119
--- 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;
     }