Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion hw/drivers/mmc/src/mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ send_mmc_cmd(mmc_disk_t *mmc, sd_cmd_t cmd, uint32_t payload)
uint16_t status;
uint8_t crc;
uint8_t buf[6];
char strbuf[30];
char strbuf[90];

mmc_led_on();

Expand Down Expand Up @@ -360,6 +360,7 @@ mmc_cmd_receive_data(mmc_disk_t *mmc, uint8_t cmd, uint32_t payload,
{
int status;
uint8_t res;
uint8_t crc[2];

mmc_spi_set_cs(mmc, 0);

Expand All @@ -372,6 +373,8 @@ mmc_cmd_receive_data(mmc_disk_t *mmc, uint8_t cmd, uint32_t payload,
}
}

mmc_spi_rx(mmc, crc, 2);

mmc_spi_set_cs(mmc, 1);

mmc_send_extra_clocks(mmc);
Expand Down
Loading