From d5a4ffe139cc602a17775a0e84e690e6d781a0f7 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 5 Dec 2012 10:58:26 -0300 Subject: [PATCH] tornado/fw/mmc-hw.c (mmc_recv): make sure to send 0xff when receiving --- tornado/fw/mmc-hw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tornado/fw/mmc-hw.c b/tornado/fw/mmc-hw.c index c4c0a4f..f4098da 100644 --- a/tornado/fw/mmc-hw.c +++ b/tornado/fw/mmc-hw.c @@ -74,6 +74,7 @@ uint8_t mmc_recv(void) { uint8_t i, v = 0; + SET(MMC_MOSI); for (i = 0; i != 8; i++) { SET(MMC_CLK); v = (v << 1) | PIN(MMC_MISO);