SDIO Driver: Fix bug created in commit 3705cc09d1
that makes writing to disk impossible
This commit is contained in:
parent
4ab91ace5f
commit
1ad68a2c43
@ -714,7 +714,7 @@ DRESULT sdio_disk_write(const BYTE *buff, DWORD sector, UINT count)
|
|||||||
ret = sdio_check_status_register_cmd13(card_info.rca, &status.value);
|
ret = sdio_check_status_register_cmd13(card_info.rca, &status.value);
|
||||||
} while (status.statusstruct.CURRENT_STATE == CURRENT_STATE_PRG ||
|
} while (status.statusstruct.CURRENT_STATE == CURRENT_STATE_PRG ||
|
||||||
status.statusstruct.CURRENT_STATE == CURRENT_STATE_RCV ||
|
status.statusstruct.CURRENT_STATE == CURRENT_STATE_RCV ||
|
||||||
!ret);
|
ret);
|
||||||
|
|
||||||
if (status.statusstruct.CURRENT_STATE == CURRENT_STATE_STBY) {
|
if (status.statusstruct.CURRENT_STATE == CURRENT_STATE_STBY) {
|
||||||
if (sdio_send_select_card_cmd7(card_info.rca))
|
if (sdio_send_select_card_cmd7(card_info.rca))
|
||||||
|
Loading…
Reference in New Issue
Block a user