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/heater.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'klippy/heater.py') diff --git a/klippy/heater.py b/klippy/heater.py index 1b644e72..be8d7252 100644 --- a/klippy/heater.py +++ b/klippy/heater.py @@ -112,8 +112,8 @@ class PrinterHeater: self.min_extrude_temp = config.getfloat( 'min_extrude_temp', 170., minval=self.min_temp, maxval=self.max_temp) self.max_power = config.getfloat('max_power', 1., above=0., maxval=1.) - self.can_extrude = (self.min_extrude_temp <= 0. - or printer.mcu.is_fileoutput()) + is_fileoutput = printer.get_start_args().get('debugoutput') is not None + self.can_extrude = self.min_extrude_temp <= 0. or is_fileoutput self.lock = threading.Lock() self.last_temp = 0. self.last_temp_time = 0. -- cgit v1.2.3-70-g09d2