Fixing SWITCHING_EXTRUDER feature

2.0.x
fixoid 7 years ago
parent 2ad3ca5d8a
commit e530c67349

@ -10350,22 +10350,20 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
UNUSED(fr_mm_s);
UNUSED(no_move);
#if ENABLED(SWITCHING_EXTRUDER) && !DONT_SWITCH
stepper.synchronize();
move_extruder_servo(tmp_extruder);
#elif ENABLED(MK2_MULTIPLEXER)
#if ENABLED(MK2_MULTIPLEXER)
if (tmp_extruder >= E_STEPPERS)
return invalid_extruder_error(tmp_extruder);
select_multiplexed_stepper(tmp_extruder);
#endif
#endif // HOTENDS <= 1
#if ENABLED(SWITCHING_EXTRUDER) && !DONT_SWITCH
stepper.synchronize();
move_extruder_servo(tmp_extruder);
#endif
active_extruder = tmp_extruder;
SERIAL_ECHO_START();

Loading…
Cancel
Save