A library with drivers for different peripherals on the LPC4088 QuickStart Board or related add-on boards.
Fork of EALib by
Diff: MCIFileSystem.cpp
- Revision:
- 16:c22621bd7dea
- Parent:
- 12:15597e45eea0
- Child:
- 20:e1e36493f347
diff -r 529fb3f8f88b -r c22621bd7dea MCIFileSystem.cpp --- a/MCIFileSystem.cpp Mon Aug 25 13:14:34 2014 +0000 +++ b/MCIFileSystem.cpp Wed Aug 27 14:22:41 2014 +0000 @@ -608,7 +608,11 @@ initMCI(); - if (cd != NC) + if (cd == NC) + { + _cardDetect = NULL; + } + else { _cardDetect = new DigitalIn(cd); _cardDetect->mode(PullUp);