mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 23:24:01 -06:00
heater: Move M105 command handling from gcode.py to heater.py
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
44f868a802
commit
d858498a53
5 changed files with 59 additions and 49 deletions
|
@ -19,10 +19,10 @@ class PrinterHeaterBed:
|
|||
# Set Bed Temperature
|
||||
gcode = self.printer.lookup_object('gcode')
|
||||
temp = gcode.get_float('S', params, 0.)
|
||||
toolhead = self.printer.lookup_object('toolhead')
|
||||
self.heater.set_temp(temp)
|
||||
if wait and temp:
|
||||
gcode.wait_for_temperature(self.heater)
|
||||
pheater = self.printer.lookup_object('heater')
|
||||
pheater.wait_for_temperature(self.heater)
|
||||
def cmd_M190(self, params):
|
||||
# Set Bed Temperature and Wait
|
||||
self.cmd_M140(params, wait=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue