Skip to content

Commit f19b922

Browse files
authored
Merge pull request #98 from alrvid/main
Fix LittleFS formatting freeze bug
2 parents 1c9b086 + c0761da commit f19b922

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/BlockDevices/SDCardBlockDevice.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ int SDCardBlockDevice::close() {
346346
fsp_err_t rv = FSP_ERR_INVALID_ADDRESS;
347347
rv = R_SDHI_Close (&ctrl);
348348
opened = false;
349+
card_inserted = false;
350+
initialized = false;
349351
return (int)rv;
350352
}
351353

0 commit comments

Comments
 (0)