From 9f28177d4d5c59ba9d7949b7f7db3b949274e22e Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 6 Mar 2011 00:56:26 +0000 Subject: [PATCH] Correct a loop termination bug in mmcsd_sdio.c git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3344 42af7a65-404d-4744-a932-0658087f49c3 --- drivers/mmcsd/mmcsd_sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmcsd/mmcsd_sdio.c b/drivers/mmcsd/mmcsd_sdio.c index 779cfb32e6..b02a8f7a3f 100644 --- a/drivers/mmcsd/mmcsd_sdio.c +++ b/drivers/mmcsd/mmcsd_sdio.c @@ -2613,7 +2613,7 @@ static int mmcsd_cardidentify(FAR struct mmcsd_state_s *priv) elapsed = g_system_timer - start; } - while (elapsed < TICK_PER_SEC || ret != OK); + while (elapsed < TICK_PER_SEC && ret != OK); /* We get here when the above loop completes, either (1) we could not * communicate properly with the card due to errors (and the loop times