summaryrefslogtreecommitdiff
path: root/nuttx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-06 00:56:26 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-03-06 00:56:26 +0000
commit37a1883664d40bc4c6854edd29dd5014dbb3d1c7 (patch)
tree4d697a121229926c954326f39e7b895efd0d07b6 /nuttx
parent1b0d4bc8f190687698dc712e7ca4ebc5b14ce24f (diff)
downloadpx4-nuttx-37a1883664d40bc4c6854edd29dd5014dbb3d1c7.tar.gz
px4-nuttx-37a1883664d40bc4c6854edd29dd5014dbb3d1c7.tar.bz2
px4-nuttx-37a1883664d40bc4c6854edd29dd5014dbb3d1c7.zip
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
Diffstat (limited to 'nuttx')
-rw-r--r--nuttx/drivers/mmcsd/mmcsd_sdio.c2
1 files changed, 1 insertions, 1 deletions
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