From 456ded3f3609c9a49b2942b683af3303e484506b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sun, 17 Mar 2013 13:53:38 +0100 Subject: [PATCH] Fixed off by one error in resend loop --- octoprint/util/comm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint/util/comm.py b/octoprint/util/comm.py index 9b16f33..e5382cd 100644 --- a/octoprint/util/comm.py +++ b/octoprint/util/comm.py @@ -532,7 +532,7 @@ class MachineCom(object): self._doSendWithChecksum(cmd, lineNumber) self._resendDelta -= 1 - if self._resendDelta < 0: + if self._resendDelta <= 0: self._resendDelta = None def _sendCommand(self, cmd, sendChecksum=False):