Browse Source

Make sure `leveled[]` is enabled for use

Scott Lahteine 6 years ago
parent
commit
95590adf07
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/Marlin_main.cpp

+ 2
- 1
Marlin/Marlin_main.cpp View File

@@ -8509,9 +8509,10 @@ void report_current_position() {
8509 8509
     SERIAL_PROTOCOLPGM("Raw:    ");
8510 8510
     report_xyz(current_position);
8511 8511
 
8512
+    float leveled[XYZ] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
8513
+
8512 8514
     #if PLANNER_LEVELING
8513 8515
       SERIAL_PROTOCOLPGM("Leveled:");
8514
-      float leveled[XYZ] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
8515 8516
       planner.apply_leveling(leveled);
8516 8517
       report_xyz(leveled);
8517 8518
 

Loading…
Cancel
Save