forked from espressif/arduino-esp32
BUGFIX - Sd check status (#6103)
* Edit sd_diskio to check card status * Bugfix of ff_sd_status
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user