Skip to content

Commit

Permalink
implement pr arduino-libraries#97
Browse files Browse the repository at this point in the history
  • Loading branch information
mcaldwelva committed Sep 14, 2022
1 parent 4c16637 commit 58bcbb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,8 @@ namespace SDLib {
//Serial.print("try to open file ");
//Serial.println(name);

if (f.open(_file, name, mode)) {
uint16_t index = _file->curPosition() / sizeof(dir_t) - 1;
if (f.open(_file, index, mode)) {
//Serial.println("OK!");
return File(f, name);
} else {
Expand Down

0 comments on commit 58bcbb6

Please sign in to comment.