From 17c23bbaf325e5a8a47957583a39dd96749de0d2 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 13 Oct 2015 03:58:50 -0700 Subject: [PATCH] Shorten gcode_M221 yet function the same --- Marlin/Marlin_main.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 1b2503872..4d29ebc7a 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -4666,13 +4666,8 @@ inline void gcode_M220() { inline void gcode_M221() { if (code_seen('S')) { int sval = code_value(); - if (code_seen('T')) { - if (setTargetedHotend(221)) return; - extruder_multiplier[target_extruder] = sval; - } - else { - extruder_multiplier[active_extruder] = sval; - } + if (setTargetedHotend(221)) return; + extruder_multiplier[target_extruder] = sval; } }