Skip to content

Commit

Permalink
fix(sd): AquireSPI lock in sdcard_uninit (#9468)
Browse files Browse the repository at this point in the history
  • Loading branch information
P-R-O-C-H-Y committed Apr 9, 2024
1 parent 34f5456 commit b6ca5a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/SD/src/sd_diskio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ uint8_t sdcard_uninit(uint8_t pdrv)
if (pdrv >= FF_VOLUMES || card == NULL) {
return 1;
}
AcquireSPI lock(card);
sdTransaction(pdrv, GO_IDLE_STATE, 0, NULL);
ff_diskio_register(pdrv, NULL);
s_cards[pdrv] = NULL;
Expand Down

0 comments on commit b6ca5a8

Please sign in to comment.