Skip to content

Commit

Permalink
Prefix with "EVENT_GCODE"
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jan 21, 2020
1 parent 4324f0f commit 37fa6a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1772,8 +1772,7 @@
#define TOOLCHANGE_ZRAISE 2 // (mm)
//#define TOOLCHANGE_NO_RETURN // Never return to the previous position on tool-change
#if ENABLED(TOOLCHANGE_NO_RETURN)
// Tool Change Post Process
//#define TOOLCHANGE_POST_PROCESS "G12X"
//#define EVENT_GCODE_AFTER_TOOLCHANGE "G12X" // G-code to run after tool-change is complete
#endif

// Retract and prime filament on tool-change
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/module/tool_change.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1067,8 +1067,8 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
fanmux_switch(active_extruder);
#endif

#if defined(TOOLCHANGE_POST_PROCESS)
gcode.process_subcommands_now_P(TOOLCHANGE_POST_PROCESS);
#if defined(EVENT_GCODE_AFTER_TOOLCHANGE)
gcode.process_subcommands_now_P(EVENT_GCODE_AFTER_TOOLCHANGE);
#endif

SERIAL_ECHO_START();
Expand Down

0 comments on commit 37fa6a0

Please sign in to comment.