Skip to content

Commit

Permalink
Merge pull request #9668 from gschorcht/sdcard_spi
Browse files Browse the repository at this point in the history
driver/sdcard_spi: fix of issue #9667
  • Loading branch information
miri64 committed Aug 1, 2018
2 parents 0a8d5e0 + bd4661b commit 3930498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/sdcard_spi/sdcard_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ char sdcard_spi_send_cmd(sdcard_spi_t *card, char sd_cmd_idx, uint32_t argument,
char echo[sizeof(cmd_data)];

do {
DEBUG("sdcard_spi_send_cmd: CMD%02d (0x%08lx) (retry %d)\n", sd_cmd_idx, argument, try_cnt);
DEBUG("sdcard_spi_send_cmd: CMD%02d (0x%08" PRIx32 ") (retry %d)\n", sd_cmd_idx, argument, try_cnt);

if (!_wait_for_not_busy(card, SD_WAIT_FOR_NOT_BUSY_CNT)) {
DEBUG("sdcard_spi_send_cmd: timeout while waiting for bus to be not busy!\n");
Expand Down Expand Up @@ -475,7 +475,7 @@ char sdcard_spi_send_acmd(sdcard_spi_t *card, char sd_cmd_idx, uint32_t argument
char r1_resu;

do {
DEBUG("sdcard_spi_send_acmd: CMD%02d (0x%08lx)(retry %d)\n", sd_cmd_idx, argument, err_cnt);
DEBUG("sdcard_spi_send_acmd: CMD%02d (0x%08" PRIx32 ")(retry %d)\n", sd_cmd_idx, argument, err_cnt);
r1_resu = sdcard_spi_send_cmd(card, SD_CMD_55, SD_CMD_NO_ARG, 0);
if (R1_VALID(r1_resu) && !R1_ERROR(r1_resu)) {
r1_resu = sdcard_spi_send_cmd(card, sd_cmd_idx, argument, 0);
Expand Down

0 comments on commit 3930498

Please sign in to comment.