diff options
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/hal_mmc_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/src/hal_mmc_spi.c b/os/hal/src/hal_mmc_spi.c index 1daea1fb6..ab2b8e7aa 100644 --- a/os/hal/src/hal_mmc_spi.c +++ b/os/hal/src/hal_mmc_spi.c @@ -492,7 +492,7 @@ bool mmcConnect(MMCDriver *mmcp) { i = 0;
while (true) {
/*lint -save -e9007 [13.5] Side effect unimportant.*/
- if ((send_command_R1(mmcp, MMCSD_CMD_APP_CMD, 0) == 0x01U) &&
+ if ((send_command_R1(mmcp, MMCSD_CMD_APP_CMD, 0) <= 0x01U) &&
(send_command_R3(mmcp, MMCSD_CMD_APP_OP_COND, 0x400001AAU, r3) == 0x00U)) {
/*lint -restore*/
break;
|