SDFileSystem

Dependencies:   FATFileSystem

Dependents:   Atlas_Test Atlas Interface_FRDMK64F_HMD_Sample_full ramanSpectrometer_interfaceBoard ... more

This pull request has been rejected by Mbed

Minor change to fix a lockup I was getting

When the current library fails to initalise the SD card it still proceeds with the rest of the disk initalisation function. I found this was causing my code to lock up rather than return a null file pointer when attempting to access files.

I made a two line change to the disk initalise function to immediately return 1 (the media not ready error code) if the sd card initalisation fails. Unless I'm missing something this seems like the correct thing to do.

Tiny change to standard library to prevent lockups when attempting SD card access if a card isn't present.