From 27bc7d3d03c6c3d6e7f94695b971fc70173a8fa3 Mon Sep 17 00:00:00 2001 From: Bryan Mayland Date: Wed, 7 Aug 2013 11:23:40 -0400 Subject: [PATCH] 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. --- octoprint/util/gcodeInterpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint/util/gcodeInterpreter.py b/octoprint/util/gcodeInterpreter.py index 4a52e0fd..ee55c860 100644 --- a/octoprint/util/gcodeInterpreter.py +++ b/octoprint/util/gcodeInterpreter.py @@ -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)):