From 9cd7c65e06c298043c463c4670e038ca1508b066 Mon Sep 17 00:00:00 2001 From: James Snyder Date: Sun, 13 Nov 2011 15:56:06 -0600 Subject: [PATCH] Fix typo in mmc timer code that prevented writing to files --- src/elua_mmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elua_mmc.c b/src/elua_mmc.c index 7c97e6d3..fe6838da 100644 --- a/src/elua_mmc.c +++ b/src/elua_mmc.c @@ -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; }