Browse Source

With SINGLENOZZLE only set temperature for the active tool

Scott Lahteine 9 years ago
parent
commit
f2fb66c00d
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      Marlin/Marlin_main.cpp

+ 8
- 0
Marlin/Marlin_main.cpp View File

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

Loading…
Cancel
Save