Skip to content

Commit 44b02fb

Browse files
committed
Add error checking when re-mounting FFat
1 parent d860377 commit 44b02fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/storage/storage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ static void listFiles(const char *const dirname)
8686
static void switchToApplicationMode()
8787
{
8888
MSC.mediaPresent(false);
89-
FFat.end(); // invalidate cache
90-
FFat.begin(); // update data
89+
FFat.end(); // invalidate cache
90+
ESP_ERROR_CHECK(FFat.begin()); // update data
9191
}
9292

9393
/**

0 commit comments

Comments
 (0)