From 268834e4aedac2e435e778802353e767d6b8abe3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Mon, 21 Aug 2017 17:19:43 -0400 Subject: 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 --- klippy/toolhead.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'klippy/toolhead.py') 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) -- cgit v1.2.3-70-g09d2