Bläddra i källkod

With SINGLENOZZLE only set temperature for the active tool

Scott Lahteine 9 år sedan
förälder
incheckning
f2fb66c00d
1 ändrade filer med 8 tillägg och 0 borttagningar
  1. 8
    0
      Marlin/Marlin_main.cpp

+ 8
- 0
Marlin/Marlin_main.cpp Visa fil

@@ -4362,6 +4362,10 @@ inline void gcode_M104() {
4362 4362
   if (get_target_extruder_from_command(104)) return;
4363 4363
   if (DEBUGGING(DRYRUN)) return;
4364 4364
 
4365
+  #if ENABLED(SINGLENOZZLE)
4366
+    if (target_extruder != active_extruder) return;
4367
+  #endif
4368
+
4365 4369
   if (code_seen('S')) {
4366 4370
     float temp = code_value();
4367 4371
     thermalManager.setTargetHotend(temp, target_extruder);
@@ -4516,6 +4520,10 @@ inline void gcode_M109() {
4516 4520
   if (get_target_extruder_from_command(109)) return;
4517 4521
   if (DEBUGGING(DRYRUN)) return;
4518 4522
 
4523
+  #if ENABLED(SINGLENOZZLE)
4524
+    if (target_extruder != active_extruder) return;
4525
+  #endif
4526
+
4519 4527
   bool no_wait_for_cooling = code_seen('S');
4520 4528
   if (no_wait_for_cooling || code_seen('R')) {
4521 4529
     float temp = code_value();

Laddar…
Avbryt
Spara