diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-08-21 17:19:43 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-08-25 19:27:05 -0400 |
commit | 268834e4aedac2e435e778802353e767d6b8abe3 (patch) | |
tree | e3970bf8774b8401d80e97e37886a45276846c33 /klippy/toolhead.py | |
parent | b80c488d36fa22313616d3eacdcf3fcc284f972f (diff) | |
download | kutter-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.py | 2 |
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) |