Fixed line count incrementation for gcode streaming
This commit is contained in:
parent
8d4f7e2ba7
commit
30a57e21f4
1 changed files with 1 additions and 1 deletions
|
|
@ -1189,11 +1189,11 @@ class PrintingGcodeFileInformation(PrintingFileInformation):
|
|||
# file got closed just now
|
||||
return None
|
||||
line = self._filehandle.readline()
|
||||
self._lineCount += 1
|
||||
if not line:
|
||||
self._filehandle.close()
|
||||
self._filehandle = None
|
||||
processedLine = self._processLine(line)
|
||||
self._lineCount += 1
|
||||
self._filepos = self._filehandle.tell()
|
||||
|
||||
if self._lineCount >= 100 and self._startTime is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue