Просмотр исходного кода

Shorten gcode_M221 yet function the same

Scott Lahteine 9 лет назад
Родитель
Сommit
17c23bbaf3
1 измененных файлов: 2 добавлений и 7 удалений
  1. 2
    7
      Marlin/Marlin_main.cpp

+ 2
- 7
Marlin/Marlin_main.cpp Просмотреть файл

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
 

Загрузка…
Отмена
Сохранить