From: Michael McMaster Date: Mon, 15 Mar 2021 11:45:22 +0000 (+1000) Subject: Operator precedence is a thing X-Git-Url: http://git.codesrc.com/gitweb.cgi?a=commitdiff_plain;h=6081b3b641581c112419b285238d9330bcdb023a;p=SCSI2SD.git Operator precedence is a thing --- diff --git a/software/SCSI2SD/src/sd.c b/software/SCSI2SD/src/sd.c index e54b506..7bf25fc 100755 --- a/software/SCSI2SD/src/sd.c +++ b/software/SCSI2SD/src/sd.c @@ -1011,7 +1011,7 @@ void sdCheckPresent() // Debounce. Quicker if the card is present at // power on - for (int i = 0; cs && (i < firstCheck ? 2 : 50); ++i) + for (int i = 0; cs && (i < (firstCheck ? 2 : 50)); ++i) { cs = sdIsCardPresent(); CyDelay(5);