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
This commit is contained in:
parent
0443335a11
commit
9f28177d4d
@ -2613,7 +2613,7 @@ static int mmcsd_cardidentify(FAR struct mmcsd_state_s *priv)
|
|||||||
|
|
||||||
elapsed = g_system_timer - start;
|
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
|
/* 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
|
* communicate properly with the card due to errors (and the loop times
|
||||||
|
Loading…
Reference in New Issue
Block a user