Browse Source

Fix SD_CHECK_AND_RETRY condition

Addressing #5806
pull/1/head
Scott Lahteine 8 years ago
committed by GitHub
parent
commit
e1702816f6
  1. 2
      Marlin/Sd2Card.cpp

2
Marlin/Sd2Card.cpp

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

Loading…
Cancel
Save