SDIO Driver: Fix bug created in commit 3705cc09d1 that makes writing to disk impossible

This commit is contained in:
Mario Hüttel 2020-08-16 01:19:56 +02:00
parent 4ab91ace5f
commit 1ad68a2c43

View File

@ -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))