Bladeren bron

Fix SD_CHECK_AND_RETRY condition

Addressing #5806
Scott Lahteine 7 jaren geleden
bovenliggende
commit
e1702816f6
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1
    1
      Marlin/Sd2Card.cpp

+ 1
- 1
Marlin/Sd2Card.cpp Bestand weergeven

406
       else
406
       else
407
         error(SD_CARD_ERROR_CMD17);
407
         error(SD_CARD_ERROR_CMD17);
408
 
408
 
409
-      if (--retryCnt) break;
409
+      if (!--retryCnt) break;
410
 
410
 
411
       chipSelectHigh();
411
       chipSelectHigh();
412
       cardCommand(CMD12, 0); // Try sending a stop command, ignore the result.
412
       cardCommand(CMD12, 0); // Try sending a stop command, ignore the result.

Laden…
Annuleren
Opslaan