aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/heater.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2016-10-11 00:00:10 -0400
committerKevin O'Connor <kevin@koconnor.net>2016-10-11 00:21:30 -0400
commit7f8a94ff48cd54513eb95ba1f6977c19b49442e6 (patch)
tree2acb5969acbfe8c5d53fdea5a830d18e9f91f69c /klippy/heater.py
parentee56b14faa445fd2ee434f65f3f1f8d945894ad1 (diff)
downloadkutter-7f8a94ff48cd54513eb95ba1f6977c19b49442e6.tar.gz
kutter-7f8a94ff48cd54513eb95ba1f6977c19b49442e6.tar.xz
kutter-7f8a94ff48cd54513eb95ba1f6977c19b49442e6.zip
heater: Make it possible to disable min_extrude_temp for testing
Allow a config file to specify 'min_extrude_temp: 0' to disable the minimum extrude temperature test. This makes it easier to perform testing on the avr simulator. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/heater.py')
-rw-r--r--klippy/heater.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/heater.py b/klippy/heater.py
index 3797b917..bef1f48c 100644
--- a/klippy/heater.py
+++ b/klippy/heater.py
@@ -29,7 +29,7 @@ class PrinterHeater:
self.thermistor_c = Thermistors.get(config.get('thermistor_type'))
self.pullup_r = config.getfloat('pullup_resistor', 4700.)
self.min_extrude_temp = config.getfloat('min_extrude_temp', 170.)
- self.can_extrude = False
+ self.can_extrude = self.min_extrude_temp <= 0.
self.lock = threading.Lock()
self.last_temp = 0.
self.last_temp_time = 0.