Skip to content

Commit 702db50

Browse files
authored
BUGFIX - Sd check status (#6103)
* Edit sd_diskio to check card status * Bugfix of ff_sd_status
1 parent 1ac3aef commit 702db50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/SD/src/sd_diskio.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ DSTATUS ff_sd_initialize(uint8_t pdrv)
609609

610610
DSTATUS ff_sd_status(uint8_t pdrv)
611611
{
612-
if(sdCommand(pdrv, SEND_STATUS, 0, NULL) == 0xFF)
612+
if(sdTransaction(pdrv, SEND_STATUS, 0, NULL))
613613
{
614614
log_e("Check status failed");
615615
return STA_NOINIT;

0 commit comments

Comments
 (0)