planner.synchronize at start of tool_change

See https://github.com/MarlinFirmware/Marlin/issues/10949#issuecomment-398540498
This commit is contained in:
Scott Lahteine 2018-07-18 20:10:50 -05:00
parent 47d5fcbbcc
commit 63a146d424

View file

@ -352,6 +352,8 @@ inline void invalid_extruder_error(const uint8_t e) {
* previous tool out of the way and the new tool into place.
*/
void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool no_move/*=false*/) {
planner.synchronize();
#if ENABLED(MIXING_EXTRUDER) && MIXING_VIRTUAL_TOOLS > 1
mixing_tool_change(tmp_extruder);