From e27b34a9f3f728f7fc86bb18b9b1b179df874120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sat, 15 Jun 2013 17:33:03 +0200 Subject: [PATCH] Hopefully fixed a off-by-one error... --- 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 d33f429..b1514cb 100644 --- a/octoprint/util/comm.py +++ b/octoprint/util/comm.py @@ -788,7 +788,7 @@ class MachineCom(object): if lineToResend is not None: self._resendDelta = self._currentLine - lineToResend - if self._resendDelta > len(self._lastLines): + if self._resendDelta >= len(self._lastLines): self._errorValue = "Printer requested line %d but history is only available up to line %d" % (lineToResend, self._currentLine - len(self._lastLines)) self._changeState(self.STATE_ERROR) self._logger.warn(self._errorValue)