Browse Source

Shorten gcode_M221 yet function the same

Scott Lahteine 9 years ago
parent
commit
17c23bbaf3
1 changed files with 2 additions and 7 deletions
  1. 2
    7
      Marlin/Marlin_main.cpp

+ 2
- 7
Marlin/Marlin_main.cpp View File

4666
 inline void gcode_M221() {
4666
 inline void gcode_M221() {
4667
   if (code_seen('S')) {
4667
   if (code_seen('S')) {
4668
     int sval = code_value();
4668
     int sval = code_value();
4669
-    if (code_seen('T')) {
4670
-      if (setTargetedHotend(221)) return;
4671
-      extruder_multiplier[target_extruder] = sval;
4672
-    }
4673
-    else {
4674
-      extruder_multiplier[active_extruder] = sval;
4675
-    }
4669
+    if (setTargetedHotend(221)) return;
4670
+    extruder_multiplier[target_extruder] = sval;
4676
   }
4671
   }
4677
 }
4672
 }
4678
 
4673
 

Loading…
Cancel
Save