Skip to content

Commit

Permalink
Fix Invalid DB error cause of SD Library in Uno example
Browse files Browse the repository at this point in the history
  • Loading branch information
siara-cc committed Apr 19, 2020
1 parent 76e923d commit 6b89dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/Uno_and_above/Uno_and_above.ino
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ void log_analog_data() {
dly = input_num();

SD.remove(filename);
myFile = SD.open(filename, FILE_WRITE);
myFile = SD.open(filename, O_READ | O_WRITE | O_CREAT);

// if the file opened okay, write to it:
if (myFile) {
Expand Down

0 comments on commit 6b89dac

Please sign in to comment.