Fix compilation warnings, errors (#14704)

This commit is contained in:
Marcio Teixeira
2019-07-22 19:08:54 -06:00
committed by Scott Lahteine
parent a589456a14
commit 369fb2806d
4 changed files with 7 additions and 6 deletions

View File

@ -770,8 +770,6 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
if (new_tool == active_extruder) return;
#endif
const uint8_t old_tool = active_extruder;
#if ENABLED(MIXING_EXTRUDER)
UNUSED(no_move);
@ -824,6 +822,7 @@ void tool_change(const uint8_t new_tool, bool no_move/*=false*/) {
constexpr bool idex_full_control = false;
#endif
const uint8_t old_tool = active_extruder;
const bool can_move_away = !no_move && !idex_full_control;
#if ENABLED(TOOLCHANGE_FILAMENT_SWAP)