Browse Source

Augment debug/homing logging

Scott Lahteine 9 years ago
parent
commit
a1bad589c9
1 changed files with 9 additions and 5 deletions
  1. 9
    5
      Marlin/Marlin_main.cpp

+ 9
- 5
Marlin/Marlin_main.cpp View File

@@ -1530,7 +1530,7 @@ static void set_home_offset(AxisEnum axis, float v) {
1530 1530
 static void set_axis_is_at_home(AxisEnum axis) {
1531 1531
   #if ENABLED(DEBUG_LEVELING_FEATURE)
1532 1532
     if (DEBUGGING(LEVELING)) {
1533
-      SERIAL_ECHOPAIR(">>> set_axis_is_at_home(", axis);
1533
+      SERIAL_ECHOPAIR(">>> set_axis_is_at_home(", axis_codes[axis]);
1534 1534
       SERIAL_ECHOLNPGM(")");
1535 1535
     }
1536 1536
   #endif
@@ -1606,7 +1606,7 @@ static void set_axis_is_at_home(AxisEnum axis) {
1606 1606
   }
1607 1607
   #if ENABLED(DEBUG_LEVELING_FEATURE)
1608 1608
     if (DEBUGGING(LEVELING)) {
1609
-      SERIAL_ECHOPAIR("<<< set_axis_is_at_home(", axis);
1609
+      SERIAL_ECHOPAIR("<<< set_axis_is_at_home(", axis_codes[axis]);
1610 1610
       SERIAL_ECHOLNPGM(")");
1611 1611
     }
1612 1612
   #endif
@@ -2131,6 +2131,10 @@ static void clean_up_after_endstop_or_probe_move() {
2131 2131
   // at the height where the probe triggered.
2132 2132
   static float run_z_probe() {
2133 2133
 
2134
+    #if ENABLED(DEBUG_LEVELING_FEATURE)
2135
+      if (DEBUGGING(LEVELING)) DEBUG_POS(">>> run_z_probe", current_position);
2136
+    #endif
2137
+
2134 2138
     // Prevent stepper_inactive_time from running out and EXTRUDER_RUNOUT_PREVENT from extruding
2135 2139
     refresh_cmd_timeout();
2136 2140
 
@@ -2158,7 +2162,7 @@ static void clean_up_after_endstop_or_probe_move() {
2158 2162
     SYNC_PLAN_POSITION_KINEMATIC();
2159 2163
 
2160 2164
     #if ENABLED(DEBUG_LEVELING_FEATURE)
2161
-      if (DEBUGGING(LEVELING)) DEBUG_POS("run_z_probe", current_position);
2165
+      if (DEBUGGING(LEVELING)) DEBUG_POS("<<< run_z_probe", current_position);
2162 2166
     #endif
2163 2167
 
2164 2168
     return current_position[Z_AXIS];
@@ -2403,7 +2407,7 @@ static void homeaxis(AxisEnum axis) {
2403 2407
 
2404 2408
   #if ENABLED(DEBUG_LEVELING_FEATURE)
2405 2409
     if (DEBUGGING(LEVELING)) {
2406
-      SERIAL_ECHOPAIR(">>> homeaxis(", axis);
2410
+      SERIAL_ECHOPAIR(">>> homeaxis(", axis_codes[axis]);
2407 2411
       SERIAL_ECHOLNPGM(")");
2408 2412
     }
2409 2413
   #endif
@@ -2514,7 +2518,7 @@ static void homeaxis(AxisEnum axis) {
2514 2518
 
2515 2519
   #if ENABLED(DEBUG_LEVELING_FEATURE)
2516 2520
     if (DEBUGGING(LEVELING)) {
2517
-      SERIAL_ECHOPAIR("<<< homeaxis(", axis);
2521
+      SERIAL_ECHOPAIR("<<< homeaxis(", axis_codes[axis]);
2518 2522
       SERIAL_ECHOLNPGM(")");
2519 2523
     }
2520 2524
   #endif

Loading…
Cancel
Save