aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/toolhead.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-08-21 17:19:43 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-08-25 19:27:05 -0400
commit268834e4aedac2e435e778802353e767d6b8abe3 (patch)
treee3970bf8774b8401d80e97e37886a45276846c33 /klippy/toolhead.py
parentb80c488d36fa22313616d3eacdcf3fcc284f972f (diff)
downloadkutter-268834e4aedac2e435e778802353e767d6b8abe3.tar.gz
kutter-268834e4aedac2e435e778802353e767d6b8abe3.tar.xz
kutter-268834e4aedac2e435e778802353e767d6b8abe3.zip
klippy: Store printer startup parameters in new "start_args" dictionary
Store pertinent information from the software startup in a dictionary that the various printer components can access instead of in individual variables in the Printer() class. This makes it easier to add future command-line options. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/toolhead.py')
-rw-r--r--klippy/toolhead.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/toolhead.py b/klippy/toolhead.py
index ab064cfe..edb8f851 100644
--- a/klippy/toolhead.py
+++ b/klippy/toolhead.py
@@ -359,6 +359,8 @@ class ToolHead:
logging.debug('; Max time of %f' % (last_move_time,))
def wait_moves(self):
self._flush_lookahead()
+ if self.printer.get_start_args().get('debugoutput') is not None:
+ return
eventtime = self.reactor.monotonic()
while self.print_time:
eventtime = self.reactor.pause(eventtime + 0.100)