Browse Source

Merge pull request #3597 from thinkyhead/rc_fix_g29_debug

Move G29 debug output before matrix.set_to_identity()
Scott Lahteine 8 years ago
parent
commit
2bb56ef6de
1 changed files with 8 additions and 8 deletions
  1. 8
    8
      Marlin/Marlin_main.cpp

+ 8
- 8
Marlin/Marlin_main.cpp View File

3196
 
3196
 
3197
     if (!dryrun) {
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
       // make sure the bed_level_rotation_matrix is identity or the planner will get it wrong
3207
       // make sure the bed_level_rotation_matrix is identity or the planner will get it wrong
3200
       plan_bed_level_matrix.set_to_identity();
3208
       plan_bed_level_matrix.set_to_identity();
3201
 
3209
 
3203
         reset_bed_level();
3211
         reset_bed_level();
3204
       #else //!DELTA
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
         //vector_3 corrected_position = plan_get_position();
3214
         //vector_3 corrected_position = plan_get_position();
3215
         //corrected_position.debug("position before G29");
3215
         //corrected_position.debug("position before G29");
3216
         vector_3 uncorrected_position = plan_get_position();
3216
         vector_3 uncorrected_position = plan_get_position();

Loading…
Cancel
Save