From 37a1883664d40bc4c6854edd29dd5014dbb3d1c7 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 6 Mar 2011 00:56:26 +0000 Subject: 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 --- nuttx/drivers/mmcsd/mmcsd_sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nuttx/drivers/mmcsd/mmcsd_sdio.c b/nuttx/drivers/mmcsd/mmcsd_sdio.c index 779cfb32e..b02a8f7a3 100644 --- a/nuttx/drivers/mmcsd/mmcsd_sdio.c +++ b/nuttx/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 -- cgit v1.2.3