forked from espressif/arduino-esp32
Edit sd_diskio to check card status (#5988)
This commit is contained in:
@ -609,6 +609,11 @@ unknown_card:
|
||||
|
||||
DSTATUS ff_sd_status(uint8_t pdrv)
|
||||
{
|
||||
if(sdCommand(pdrv, SEND_STATUS, 0, NULL) == 0xFF)
|
||||
{
|
||||
log_e("Check status failed");
|
||||
return STA_NOINIT;
|
||||
}
|
||||
return s_cards[pdrv]->status;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user