TeensyWolf
Well-known member
What's the best way to determine when card gets abruptly ejected during logging?
Using TeensyDuino 1.55 with SDfat 2.0.5beta
I tried to use
I'm opening the file once and using myFile.flush()
But it doesn't seem to detect card is not there and blocks.
TIA
Using TeensyDuino 1.55 with SDfat 2.0.5beta
I tried to use
Code:
void writeMyFileSD() {
if (myFile.isWritable() ) {
if ( myFile.isOpen() ) {
myFile.printf( "%s\n", myBuffer );
myFile.flush();
}
}
}
I'm opening the file once and using myFile.flush()
But it doesn't seem to detect card is not there and blocks.
TIA
Last edited: