Skip to content

Commit 9640072

Browse files
committed
Corrected the error handling for FFat.begin()
That function returns `true` on success.
1 parent 44b02fb commit 9640072

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-
ESP_ERROR_CHECK(FFat.begin()); // update data
89+
FFat.end(); // invalidate cache
90+
assert(FFat.begin()); // update data
9191
}
9292

9393
/**

0 commit comments

Comments
 (0)