|
@ -2098,6 +2098,7 @@ void MarlinSettings::reset( |
|
|
|
|
|
|
|
|
#if ENABLED(MESH_BED_LEVELING) |
|
|
#if ENABLED(MESH_BED_LEVELING) |
|
|
|
|
|
|
|
|
|
|
|
if (leveling_is_valid()) { |
|
|
for (uint8_t py = 0; py < GRID_MAX_POINTS_Y; py++) { |
|
|
for (uint8_t py = 0; py < GRID_MAX_POINTS_Y; py++) { |
|
|
for (uint8_t px = 0; px < GRID_MAX_POINTS_X; px++) { |
|
|
for (uint8_t px = 0; px < GRID_MAX_POINTS_X; px++) { |
|
|
CONFIG_ECHO_START; |
|
|
CONFIG_ECHO_START; |
|
@ -2108,6 +2109,7 @@ void MarlinSettings::reset( |
|
|
SERIAL_EOL_P(port); |
|
|
SERIAL_EOL_P(port); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_UBL) |
|
|
#elif ENABLED(AUTO_BED_LEVELING_UBL) |
|
|
|
|
|
|
|
@ -2119,6 +2121,27 @@ void MarlinSettings::reset( |
|
|
SERIAL_ECHOLNPGM_P(port, " meshes.\n"); |
|
|
SERIAL_ECHOLNPGM_P(port, " meshes.\n"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ubl.report_current_mesh( |
|
|
|
|
|
#if ADD_PORT_ARG |
|
|
|
|
|
port |
|
|
|
|
|
#endif |
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
#elif ENABLED(AUTO_BED_LEVELING_BILINEAR) |
|
|
|
|
|
|
|
|
|
|
|
if (leveling_is_valid()) { |
|
|
|
|
|
for (uint8_t py = 0; py < GRID_MAX_POINTS_Y; py++) { |
|
|
|
|
|
for (uint8_t px = 0; px < GRID_MAX_POINTS_X; px++) { |
|
|
|
|
|
CONFIG_ECHO_START; |
|
|
|
|
|
SERIAL_ECHOPAIR_P(port, " G29 W I", (int)px + 1); |
|
|
|
|
|
SERIAL_ECHOPAIR_P(port, " J", (int)py + 1); |
|
|
|
|
|
SERIAL_ECHOPGM_P(port, " Z"); |
|
|
|
|
|
SERIAL_PROTOCOL_F_P(port, LINEAR_UNIT(z_values[px][py]), 5); |
|
|
|
|
|
SERIAL_EOL_P(port); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#endif // HAS_LEVELING
|
|
|
#endif // HAS_LEVELING
|
|
|