Operator precedence is a thing
authorMichael McMaster <michael@codesrc.com>
Mon, 15 Mar 2021 11:45:22 +0000 (21:45 +1000)
committerMichael McMaster <michael@codesrc.com>
Mon, 15 Mar 2021 11:45:22 +0000 (21:45 +1000)
software/SCSI2SD/src/sd.c

index e54b5060da4b72d1c7d0f6cb7143c2f990f8b48a..7bf25fc42acaace9580a3b55c1bb9d447980f449 100755 (executable)
@@ -1011,7 +1011,7 @@ void sdCheckPresent()
 \r
                        // Debounce. Quicker if the card is present at\r
                        // power on\r
-                       for (int i = 0; cs && (i < firstCheck ? 2 : 50); ++i)\r
+                       for (int i = 0; cs && (i < (firstCheck ? 2 : 50)); ++i)\r
                        {\r
                                cs = sdIsCardPresent();\r
                                CyDelay(5);\r