mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-07-29 18:27:15 +02:00
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)
|
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");
|
log_e("Check status failed");
|
||||||
return STA_NOINIT;
|
return STA_NOINIT;
|
||||||
|
Reference in New Issue
Block a user