Fix toolchange compile error (#18312)

This commit is contained in:
InsanityAutomation authored and GitHub committed 2020-06-15 16:26:09 -05:00
1 parent fc99665c01
commit 955971486b
2 files changed
+7 -5

No files matched your search

+6 -4
View File
@@ -967,10 +967,12 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
if (ENABLED(SINGLENOZZLE)) { active_extruder = new_tool; return; }
}
else {
// If first new tool, toolchange without unloading the old not initialized 'Just prime/init the new'
if (first_tool_is_primed)
unscaled_e_move(-toolchange_settings.swap_length, MMM_TO_MMS(toolchange_settings.retract_speed));
first_tool_is_primed = true; // The first new tool will be primed by toolchanging
#if ENABLED(TOOLCHANGE_FS_PRIME_FIRST_USED)
// For first new tool, change without unloading the old. 'Just prime/init the new'
if (first_tool_is_primed)
unscaled_e_move(-toolchange_settings.swap_length, MMM_TO_MMS(toolchange_settings.retract_speed));
first_tool_is_primed = true; // The first new tool will be primed by toolchanging
#endif
}
}
#endif