so i'm lost try next figured reach out community see thoughts are.
for reason, after have removed sd card, both sd.open , sd.exists still return 1 if they're still true although they're not. thing driving me crazy in first few drafts of program, worked fine , able use false boolean trigger error loop. changed has broken , can not figure out be.
side note: if remove sd card after sd.begin before sd.open or sd.exists runs first time, return false (0) should. however, seems once run sd card in , returns true (1), value seems stick after sd card removed.
the code below part of data-logger program took out , simplified make easier follow, similar main program. shield i'm using adafruit data-logging shield link along arduino mega 2560
for reason, after have removed sd card, both sd.open , sd.exists still return 1 if they're still true although they're not. thing driving me crazy in first few drafts of program, worked fine , able use false boolean trigger error loop. changed has broken , can not figure out be.
side note: if remove sd card after sd.begin before sd.open or sd.exists runs first time, return false (0) should. however, seems once run sd card in , returns true (1), value seems stick after sd card removed.
the code below part of data-logger program took out , simplified make easier follow, similar main program. shield i'm using adafruit data-logging shield link along arduino mega 2560
most directory block containing file cached. no access sd card required open file or check exists if file found in cache.
Arduino Forum > Using Arduino > Storage > SD.open and SD.exists still return 1 after SD Card Removed
arduino
Comments
Post a Comment