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.
This commit is contained in:
1 parent
821c0c9abb
commit
27bc7d3d03
1 file changed
+1
-1
@@ -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)):
|
||||
|
||||
Reference in new issue
Block a user