Skip to content

Commit

Permalink
Fix for cached data after format()
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulStoffregen committed Oct 6, 2021
1 parent 049ada7 commit 89a982d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/SD.cpp
Expand Up @@ -62,6 +62,10 @@ bool SDClass::format(int type, char progressChar, Print& pr)
ret = fatFormatter.format(card, buf, &pr);
}
free(buf);
if (ret) {
// TODO: Is begin() really necessary? Is a quicker way possible?
begin(cspin);
}
return ret;
}

Expand Down

0 comments on commit 89a982d

Please sign in to comment.