1
0
mirror of https://github.com/elua/elua.git synced 2025-01-25 01:02:54 +08:00

Fix typo in mmc timer code that prevented writing to files

This commit is contained in:
James Snyder 2011-11-13 15:56:06 -06:00
parent cd530f9640
commit 9cd7c65e06

View File

@ -114,7 +114,7 @@ BYTE wait_ready (void)
rcvr_spi();
do
res = rcvr_spi(); /* Wait for ready in timeout of 500ms. */
while ( ( res != 0xFF ) && ( platform_timer_get_diff_crt( PLATFORM_TIMER_SYS_ID, Timer1 ) < 500000 ) );
while ( ( res != 0xFF ) && ( platform_timer_get_diff_crt( PLATFORM_TIMER_SYS_ID, Timer2 ) < 500000 ) );
return res;
}