Browse Source

Fix M420 (UBL) undefined variables (#15621)

milkpirate 4 years ago
parent
commit
6bcd4eb12d
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/gcode/bedlevel/M420.cpp

+ 2
- 2
Marlin/src/gcode/bedlevel/M420.cpp View File

@@ -64,9 +64,9 @@ void GcodeSuite::M420() {
64 64
 
65 65
   #if ENABLED(MARLIN_DEV_MODE)
66 66
     if (parser.intval('S') == 2) {
67
+      const float x_min = probe_min_x(), x_max = probe_max_x(),
68
+                  y_min = probe_min_y(), y_max = probe_max_y();
67 69
       #if ENABLED(AUTO_BED_LEVELING_BILINEAR)
68
-        const float x_min = probe_min_x(), x_max = probe_max_x(),
69
-                    y_min = probe_min_y(), y_max = probe_max_y();
70 70
         bilinear_start.set(x_min, y_min);
71 71
         bilinear_grid_spacing.set((x_max - x_min) / (GRID_MAX_POINTS_X - 1),
72 72
                                   (y_max - y_min) / (GRID_MAX_POINTS_Y - 1));

Loading…
Cancel
Save