diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-01-02 19:17:47 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-01-03 18:13:57 -0500 |
commit | 4b6a65c1e03a889e6004c00f301164495965e49c (patch) | |
tree | f3d7d1a4f0bb75beeb731512eaa77c46e5596a94 /klippy/extras/heater_bed.py | |
parent | dabffcc22c84c92878bbd680a57e23874ded757d (diff) | |
download | kutter-4b6a65c1e03a889e6004c00f301164495965e49c.tar.gz kutter-4b6a65c1e03a889e6004c00f301164495965e49c.tar.xz kutter-4b6a65c1e03a889e6004c00f301164495965e49c.zip |
heater: Do not flush look-ahead queue on a heater temperature update
The print_time parameter of heater.set_temp() is not currently used
and it isn't necessary to flush the look-ahead queue just get the
print_time. Remove the parameter from heater.set_temp() to avoid
flushing the look-ahead queue.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/heater_bed.py')
-rw-r--r-- | klippy/extras/heater_bed.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/klippy/extras/heater_bed.py b/klippy/extras/heater_bed.py index f20c157b..c8f68f2e 100644 --- a/klippy/extras/heater_bed.py +++ b/klippy/extras/heater_bed.py @@ -20,8 +20,7 @@ class PrinterHeaterBed: gcode = self.printer.lookup_object('gcode') temp = gcode.get_float('S', params, 0.) toolhead = self.printer.lookup_object('toolhead') - print_time = toolhead.get_last_move_time() - self.heater.set_temp(print_time, temp) + self.heater.set_temp(temp) if wait and temp: gcode.wait_for_temperature(self.heater) def cmd_M190(self, params): |