From 9bf1f835978b44bc46a7bd2aaaf8bcf9c4598144 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 5 Dec 2012 10:59:54 -0300 Subject: [PATCH] tornado/fw/mmc.c: call mmc_recv for low-level I/O, not mmc_read --- tornado/fw/mmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tornado/fw/mmc.c b/tornado/fw/mmc.c index fed6100..d023d6c 100644 --- a/tornado/fw/mmc.c +++ b/tornado/fw/mmc.c @@ -70,7 +70,7 @@ static uint8_t mmc_r1(void) { uint8_t v, tries = 0xff; - do v = mmc_read(); + do v = mmc_recv(); while ((v & 0x80) && --tries); return v; } @@ -81,7 +81,7 @@ static void mmc_wait(void) uint8_t v, tries = 0xff; do { - v = mmc_read(); + v = mmc_recv(); if (v == MMC_START_SINGLE_BLOCK) return; }