소스 검색

Fix SD_CHECK_AND_RETRY condition

Addressing #5806
Scott Lahteine 7 년 전
부모
커밋
e1702816f6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      Marlin/Sd2Card.cpp

+ 1
- 1
Marlin/Sd2Card.cpp 파일 보기

@@ -406,7 +406,7 @@ bool Sd2Card::readBlock(uint32_t blockNumber, uint8_t* dst) {
406 406
       else
407 407
         error(SD_CARD_ERROR_CMD17);
408 408
 
409
-      if (--retryCnt) break;
409
+      if (!--retryCnt) break;
410 410
 
411 411
       chipSelectHigh();
412 412
       cardCommand(CMD12, 0); // Try sending a stop command, ignore the result.

Loading…
취소
저장