Increase progress callback to every 1000 lines.
The processor handles 2500 lines per second on a 700MHz pi so as a baseline that's still 2.5 updates per second.master
parent
821c0c9abb
commit
27bc7d3d03
|
@ -118,7 +118,7 @@ class gcode(object):
|
|||
if type(line) is tuple:
|
||||
line = line[0]
|
||||
filePos += 1
|
||||
if self.progressCallback is not None and (filePos % 100 == 0):
|
||||
if self.progressCallback is not None and (filePos % 1000 == 0):
|
||||
if isinstance(gcodeFile, (file)):
|
||||
self.progressCallback(float(gcodeFile.tell()) / float(self._fileSize))
|
||||
elif isinstance(gcodeFile, (list)):
|
||||
|
|
Loading…
Reference in New Issue