reduced wait times to more reasonable values in order to reduce boot lag if no card is inserted

This commit is contained in:
Markus Fröschle
2013-10-19 06:15:58 +00:00
parent 0de5f99c9e
commit 693f1eb86f

View File

@@ -363,7 +363,7 @@ static uint8_t send_cmd(uint8_t cmd, uint32_t arg)
xchg_spi(0xFF, 0); /* Discard following one byte when CMD12 */
}
n = 10000000; /* Wait for response (1000 bytes max) */
n = 1000; /* Wait for response (1000 bytes max) */
do
res = xchg_spi(0xFF, 1);
while ((res & 0x80) && --n);