Allow gcode commands with preheat options (#274)

* Allow gcode commands with preheat options

I use this to run a heatsoak macro during preheat.
  It moves to bed center, maxes the part cooling fan,
  and starts my nevermore chamber filter to circulate
  more air.

* Add documentation for preheat gcode
This commit is contained in:
Frank Tackitt authored and GitHub committed 2021-09-18 10:32:13 -04:00
1 parent 414ac3f211
commit e1c478be83
3 files changed
+7 -1

No files matched your search

+3
View File
@@ -131,6 +131,9 @@ class PreheatPanel(ScreenPanel):
self.preheat_options[setting]["extruder"])
self._printer.set_dev_stat(heater, "target", int(self.preheat_options[setting]["extruder"]))
if self.preheat_options[setting]['gcode']:
self._screen._ws.klippy.gcode_script(self.preheat_options[setting]['gcode'])
def process_update(self, action, data):
if action != "notify_status_update":
return