Fixed SDFileSystem when no card present (pull request).
Dependents: ILI9341_Clock_Nucleo
Fork of SDFileSystem by
Revision 4:e3161f629541, committed 2014-02-15
- 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; }