From e1702816f6fc2c74e20c246faf900f1805c3fa7f Mon Sep 17 00:00:00 2001
From: Scott Lahteine <thinkyhead@users.noreply.github.com>
Date: Sat, 11 Feb 2017 23:55:56 -0600
Subject: [PATCH] Fix SD_CHECK_AND_RETRY condition

Addressing #5806
---
 Marlin/Sd2Card.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Marlin/Sd2Card.cpp b/Marlin/Sd2Card.cpp
index 6293d6f9e6..60e73e5746 100644
--- a/Marlin/Sd2Card.cpp
+++ b/Marlin/Sd2Card.cpp
@@ -406,7 +406,7 @@ bool Sd2Card::readBlock(uint32_t blockNumber, uint8_t* dst) {
       else
         error(SD_CARD_ERROR_CMD17);
 
-      if (--retryCnt) break;
+      if (!--retryCnt) break;
 
       chipSelectHigh();
       cardCommand(CMD12, 0); // Try sending a stop command, ignore the result.