I've written a library that will write messages to both the screen, and an SD card using the SD.h library.
I've noticed that if I forget to insert the SD card or there's a hardware fault I get the following error....
I've dug around in SD.h, and it seems that this error comes when the init() method is run on the Sd2Card object.
Fair enough, there's a problem, and the code has generated an error, as it should. However, what I'd like to do is be able to skip and ignore this error. As i said, my library is designed to write messages to both
the screen and the SD card, if the SD card isn't available then obviously it my project can't write to it, but I'd still like it to carry on and display to the screen. At the moment I get this error and everything stops, is it possible to just bypass it and continue?
I've not include any code, I beleive the message comes from within SD.h which I believe is now included in the arduino package. (it's also beyond my level of understanding, so I haven't been able to dig into it too far)