mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-12 01:08:00 -06:00
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>
This commit is contained in:
parent
b80c488d36
commit
268834e4ae
6 changed files with 64 additions and 71 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue