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
Bryan Mayland 2013-08-07 11:23:40 -04:00
parent 821c0c9abb
commit 27bc7d3d03
1 changed files with 1 additions and 1 deletions

View File

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