Hopefully fixed a off-by-one error...

master
Gina Häußge 2013-06-15 17:33:03 +02:00
parent 28d8dd773a
commit e27b34a9f3
1 changed files with 1 additions and 1 deletions

View File

@ -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)