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/heater.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/heater.py')
-rw-r--r-- | klippy/heater.py | 4 |
1 files changed, 2 insertions, 2 deletions
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. |