Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 424728d

Browse files
committedApr 9, 2024
fix(sd): AquireSPI lock in sdcard_uninit
1 parent 7d911b9 commit 424728d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎libraries/SD/src/sd_diskio.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,7 @@ uint8_t sdcard_uninit(uint8_t pdrv)
712712
if (pdrv >= FF_VOLUMES || card == NULL) {
713713
return 1;
714714
}
715+
AcquireSPI lock(card);
715716
sdTransaction(pdrv, GO_IDLE_STATE, 0, NULL);
716717
ff_diskio_register(pdrv, NULL);
717718
s_cards[pdrv] = NULL;

0 commit comments

Comments
 (0)
Please sign in to comment.