File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,7 @@ uint8_t Sd2Card::init(uint8_t sckRateID, uint8_t chipSelectPin) {
283
283
284
284
// command to go idle in SPI mode
285
285
while ((status_ = cardCommand (CMD0, 0 )) != R1_IDLE_STATE) {
286
- if (((uint16_t )millis () - t0) > SD_INIT_TIMEOUT) {
286
+ if (((uint16_t )( millis () - t0) ) > SD_INIT_TIMEOUT) {
287
287
error (SD_CARD_ERROR_CMD0);
288
288
goto fail;
289
289
}
@@ -305,7 +305,7 @@ uint8_t Sd2Card::init(uint8_t sckRateID, uint8_t chipSelectPin) {
305
305
306
306
while ((status_ = cardAcmd (ACMD41, arg)) != R1_READY_STATE) {
307
307
// check for timeout
308
- if (((uint16_t )millis () - t0) > SD_INIT_TIMEOUT) {
308
+ if (((uint16_t )( millis () - t0) ) > SD_INIT_TIMEOUT) {
309
309
error (SD_CARD_ERROR_ACMD41);
310
310
goto fail;
311
311
}
You can’t perform that action at this time.
0 commit comments