Skip to content

Commit

Permalink
Added experimental _MMU_POST_UNLOAD macro hook for filament cutter at…
Browse files Browse the repository at this point in the history
… ERCF
  • Loading branch information
moggieuk committed Sep 29, 2023
1 parent f36cf68 commit 2360444
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ It didn't. It just stop the print. Although T2 and T9 are mapped together for ES

25. Gate calibration - throw away the first measure unless the gate is buffered for more accurate results

26. selector calibration - need way to calibrate bypass "gate"

27. Make servo movement integration faster with option to pass printtime() to servo move so time is not currenttime to avoid toolhead.wait()
6 changes: 5 additions & 1 deletion extras/mmu.py
Original file line number Diff line number Diff line change
Expand Up @@ -2072,7 +2072,6 @@ def _on_print_start(self):
else:
msg += " (no filament loaded)"
self._log_info(msg)
self.toolhead.wait_moves()
self._set_print_state("printing")

def _mmu_pause(self, reason, force_in_print=False):
Expand Down Expand Up @@ -4068,7 +4067,12 @@ def _change_tool(self, tool, in_print, skip_tip=True):
if not skip_unload:
self._unload_tool(skip_tip=skip_tip)

if in_print:
gcode = self.printer.lookup_object('gcode_macro _MMU_POST_UNLOAD', None)
if gcode is not None:
self._wrap_gcode_command("_MMU_POST_UNLOAD", exception=True)
self._select_and_load_tool(tool)

self._track_swap_completed()

if in_print:
Expand Down

0 comments on commit 2360444

Please sign in to comment.