From 7f8a94ff48cd54513eb95ba1f6977c19b49442e6 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 11 Oct 2016 00:00:10 -0400 Subject: 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 --- klippy/heater.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/heater.py') 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. -- cgit v1.2.3-70-g09d2