BUGFIX - Sd check status (#6103)

* Edit sd_diskio to check card status

* Bugfix of ff_sd_status
This commit is contained in:
P-R-O-C-H-Y
2022-01-17 15:15:16 +01:00
committed by GitHub
parent 1ac3aefa61
commit 702db50627

View File

@ -609,7 +609,7 @@ unknown_card:
DSTATUS ff_sd_status(uint8_t pdrv)
{
if(sdCommand(pdrv, SEND_STATUS, 0, NULL) == 0xFF)
if(sdTransaction(pdrv, SEND_STATUS, 0, NULL))
{
log_e("Check status failed");
return STA_NOINIT;