Browse Source

Fix M420 (UBL) undefined variables (#15621)

pull/1/head
milkpirate 5 years ago
committed by Scott Lahteine
parent
commit
6bcd4eb12d
  1. 4
      Marlin/src/gcode/bedlevel/M420.cpp

4
Marlin/src/gcode/bedlevel/M420.cpp

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

Loading…
Cancel
Save