Browse Source

Extra logging of Dual X modes

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

+ 23
- 0
Marlin/Marlin_main.cpp View File

9324
                 current_position[X_AXIS] = destination[X_AXIS] + duplicate_extruder_x_offset;
9324
                 current_position[X_AXIS] = destination[X_AXIS] + duplicate_extruder_x_offset;
9325
               inactive_extruder_x_pos = RAW_X_POSITION(destination[X_AXIS]);
9325
               inactive_extruder_x_pos = RAW_X_POSITION(destination[X_AXIS]);
9326
               extruder_duplication_enabled = false;
9326
               extruder_duplication_enabled = false;
9327
+              #if ENABLED(DEBUG_LEVELING_FEATURE)
9328
+                if (DEBUGGING(LEVELING)) {
9329
+                  SERIAL_ECHOLNPAIR("Set inactive_extruder_x_pos=", inactive_extruder_x_pos);
9330
+                  SERIAL_ECHOLNPGM("Clear extruder_duplication_enabled");
9331
+                }
9332
+              #endif
9327
               break;
9333
               break;
9328
           }
9334
           }
9329
 
9335
 
11047
             );
11053
             );
11048
           delayed_move_time = 0;
11054
           delayed_move_time = 0;
11049
           active_extruder_parked = false;
11055
           active_extruder_parked = false;
11056
+          #if ENABLED(DEBUG_LEVELING_FEATURE)
11057
+            if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("Clear active_extruder_parked");
11058
+          #endif
11050
           break;
11059
           break;
11051
         case DXC_DUPLICATION_MODE:
11060
         case DXC_DUPLICATION_MODE:
11052
           if (active_extruder == 0) {
11061
           if (active_extruder == 0) {
11062
+            #if ENABLED(DEBUG_LEVELING_FEATURE)
11063
+              if (DEBUGGING(LEVELING)) {
11064
+                SERIAL_ECHOPAIR("Set planner X", LOGICAL_X_POSITION(inactive_extruder_x_pos));
11065
+                SERIAL_ECHOLNPAIR(" ... Line to X", current_position[X_AXIS] + duplicate_extruder_x_offset);
11066
+              }
11067
+            #endif
11053
             // move duplicate extruder into correct duplication position.
11068
             // move duplicate extruder into correct duplication position.
11054
             planner.set_position_mm(
11069
             planner.set_position_mm(
11055
               LOGICAL_X_POSITION(inactive_extruder_x_pos),
11070
               LOGICAL_X_POSITION(inactive_extruder_x_pos),
11066
             stepper.synchronize();
11081
             stepper.synchronize();
11067
             extruder_duplication_enabled = true;
11082
             extruder_duplication_enabled = true;
11068
             active_extruder_parked = false;
11083
             active_extruder_parked = false;
11084
+            #if ENABLED(DEBUG_LEVELING_FEATURE)
11085
+              if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("Set extruder_duplication_enabled\nClear active_extruder_parked");
11086
+            #endif
11087
+          }
11088
+          else {
11089
+            #if ENABLED(DEBUG_LEVELING_FEATURE)
11090
+              if (DEBUGGING(LEVELING)) SERIAL_ECHOLNPGM("Active extruder not 0");
11091
+            #endif
11069
           }
11092
           }
11070
           break;
11093
           break;
11071
       }
11094
       }

Loading…
Cancel
Save