Made the initialize function try up to three times to get the card in IDLE state before giving up. This fixes the issue with f_open failing the first time after a power cycle.
Dependents: dm_sdcard_with_adapter dm_sdcard
Fork of SDFileSystem by
Diff: SDFileSystem.cpp
- Revision:
- 2:c8f66dc765d4
- Parent:
- 1:7153ee70df01
- Child:
- 3:7b35d1709458
--- a/SDFileSystem.cpp Tue Nov 27 17:32:38 2012 +0000 +++ b/SDFileSystem.cpp Thu Nov 29 10:56:21 2012 +0000 @@ -113,7 +113,7 @@ * +------+---------+---------+- - - -+---------+-----------+----------+ */ #include "SDFileSystem.h" -#include "debug.h" +#include "mbed_debug.h" #define SD_COMMAND_TIMEOUT 5000