Browse Source

Make sure leveled[] is defined for later use

Scott Lahteine 7 years ago
parent
commit
e70b44dc0b
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/src/gcode/host/M114.cpp

+ 2
- 1
Marlin/src/gcode/host/M114.cpp View File

56
     SERIAL_PROTOCOLPGM("Raw:    ");
56
     SERIAL_PROTOCOLPGM("Raw:    ");
57
     report_xyz(current_position);
57
     report_xyz(current_position);
58
 
58
 
59
+    float leveled[XYZ] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
60
+
59
     #if PLANNER_LEVELING
61
     #if PLANNER_LEVELING
60
       SERIAL_PROTOCOLPGM("Leveled:");
62
       SERIAL_PROTOCOLPGM("Leveled:");
61
-      float leveled[XYZ] = { current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS] };
62
       planner.apply_leveling(leveled);
63
       planner.apply_leveling(leveled);
63
       report_xyz(leveled);
64
       report_xyz(leveled);
64
 
65
 

Loading…
Cancel
Save