Pārlūkot izejas kodu

Merge pull request #3597 from thinkyhead/rc_fix_g29_debug

Move G29 debug output before matrix.set_to_identity()
Scott Lahteine 8 gadus atpakaļ
vecāks
revīzija
2bb56ef6de
1 mainītis faili ar 8 papildinājumiem un 8 dzēšanām
  1. 8
    8
      Marlin/Marlin_main.cpp

+ 8
- 8
Marlin/Marlin_main.cpp Parādīt failu

@@ -3196,6 +3196,14 @@ inline void gcode_G28() {
3196 3196
 
3197 3197
     if (!dryrun) {
3198 3198
 
3199
+      #if ENABLED(DEBUG_LEVELING_FEATURE) && DISABLED(DELTA)
3200
+        if (DEBUGGING(LEVELING)) {
3201
+          vector_3 corrected_position = plan_get_position();
3202
+          DEBUG_POS("BEFORE matrix.set_to_identity", corrected_position);
3203
+          DEBUG_POS("BEFORE matrix.set_to_identity", current_position);
3204
+        }
3205
+      #endif
3206
+
3199 3207
       // make sure the bed_level_rotation_matrix is identity or the planner will get it wrong
3200 3208
       plan_bed_level_matrix.set_to_identity();
3201 3209
 
@@ -3203,14 +3211,6 @@ inline void gcode_G28() {
3203 3211
         reset_bed_level();
3204 3212
       #else //!DELTA
3205 3213
 
3206
-        #if ENABLED(DEBUG_LEVELING_FEATURE)
3207
-          if (DEBUGGING(LEVELING)) {
3208
-            vector_3 corrected_position = plan_get_position();
3209
-            DEBUG_POS("BEFORE matrix.set_to_identity", corrected_position);
3210
-            DEBUG_POS("BEFORE matrix.set_to_identity", current_position);
3211
-          }
3212
-        #endif
3213
-
3214 3214
         //vector_3 corrected_position = plan_get_position();
3215 3215
         //corrected_position.debug("position before G29");
3216 3216
         vector_3 uncorrected_position = plan_get_position();

Notiek ielāde…
Atcelt
Saglabāt