Group leveling reports for folding
This commit is contained in:
parent
190cd0a111
commit
a80f2eea23
|
@ -1804,18 +1804,44 @@ void MarlinSettings::reset() {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Bed Leveling
|
||||||
|
*/
|
||||||
|
#if HAS_LEVELING
|
||||||
|
|
||||||
#if ENABLED(MESH_BED_LEVELING)
|
#if ENABLED(MESH_BED_LEVELING)
|
||||||
|
|
||||||
if (!forReplay) {
|
if (!forReplay) {
|
||||||
CONFIG_ECHO_START;
|
CONFIG_ECHO_START;
|
||||||
SERIAL_ECHOLNPGM("Mesh Bed Leveling:");
|
SERIAL_ECHOLNPGM("Mesh Bed Leveling:");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#elif ENABLED(AUTO_BED_LEVELING_UBL)
|
||||||
|
|
||||||
|
if (!forReplay) {
|
||||||
CONFIG_ECHO_START;
|
CONFIG_ECHO_START;
|
||||||
SERIAL_ECHOPAIR(" M420 S", leveling_is_valid() ? 1 : 0);
|
ubl.echo_name();
|
||||||
|
SERIAL_ECHOLNPGM(":");
|
||||||
|
}
|
||||||
|
|
||||||
|
#elif HAS_ABL
|
||||||
|
|
||||||
|
if (!forReplay) {
|
||||||
|
CONFIG_ECHO_START;
|
||||||
|
SERIAL_ECHOLNPGM("Auto Bed Leveling:");
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
CONFIG_ECHO_START;
|
||||||
|
SERIAL_ECHOPAIR(" M420 S", planner.leveling_active ? 1 : 0);
|
||||||
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
|
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
|
||||||
SERIAL_ECHOPAIR(" Z", LINEAR_UNIT(planner.z_fade_height));
|
SERIAL_ECHOPAIR(" Z", LINEAR_UNIT(planner.z_fade_height));
|
||||||
#endif
|
#endif
|
||||||
SERIAL_EOL();
|
SERIAL_EOL();
|
||||||
|
|
||||||
|
#if ENABLED(MESH_BED_LEVELING)
|
||||||
|
|
||||||
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;
|
||||||
|
@ -1829,41 +1855,17 @@ void MarlinSettings::reset() {
|
||||||
|
|
||||||
#elif ENABLED(AUTO_BED_LEVELING_UBL)
|
#elif ENABLED(AUTO_BED_LEVELING_UBL)
|
||||||
|
|
||||||
if (!forReplay) {
|
|
||||||
CONFIG_ECHO_START;
|
|
||||||
ubl.echo_name();
|
|
||||||
SERIAL_ECHOLNPGM(":");
|
|
||||||
}
|
|
||||||
CONFIG_ECHO_START;
|
|
||||||
SERIAL_ECHOPAIR(" M420 S", planner.leveling_active ? 1 : 0);
|
|
||||||
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
|
|
||||||
SERIAL_ECHOPAIR(" Z", LINEAR_UNIT(planner.z_fade_height));
|
|
||||||
#endif
|
|
||||||
SERIAL_EOL();
|
|
||||||
|
|
||||||
if (!forReplay) {
|
if (!forReplay) {
|
||||||
SERIAL_EOL();
|
SERIAL_EOL();
|
||||||
ubl.report_state();
|
ubl.report_state();
|
||||||
|
|
||||||
SERIAL_ECHOLNPAIR("\nActive Mesh Slot: ", ubl.storage_slot);
|
SERIAL_ECHOLNPAIR("\nActive Mesh Slot: ", ubl.storage_slot);
|
||||||
SERIAL_ECHOPAIR("EEPROM can hold ", calc_num_meshes());
|
SERIAL_ECHOPAIR("EEPROM can hold ", calc_num_meshes());
|
||||||
SERIAL_ECHOLNPGM(" meshes.\n");
|
SERIAL_ECHOLNPGM(" meshes.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif HAS_ABL
|
|
||||||
|
|
||||||
if (!forReplay) {
|
|
||||||
CONFIG_ECHO_START;
|
|
||||||
SERIAL_ECHOLNPGM("Auto Bed Leveling:");
|
|
||||||
}
|
|
||||||
CONFIG_ECHO_START;
|
|
||||||
SERIAL_ECHOPAIR(" M420 S", planner.leveling_active ? 1 : 0);
|
|
||||||
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
|
|
||||||
SERIAL_ECHOPAIR(" Z", LINEAR_UNIT(planner.z_fade_height));
|
|
||||||
#endif
|
#endif
|
||||||
SERIAL_EOL();
|
|
||||||
|
|
||||||
#endif
|
#endif // HAS_LEVELING
|
||||||
|
|
||||||
#if ENABLED(DELTA)
|
#if ENABLED(DELTA)
|
||||||
if (!forReplay) {
|
if (!forReplay) {
|
||||||
|
@ -2042,7 +2044,7 @@ void MarlinSettings::reset() {
|
||||||
/**
|
/**
|
||||||
* TMC2130 stepper driver current
|
* TMC2130 stepper driver current
|
||||||
*/
|
*/
|
||||||
#if ENABLED(HAVE_TMC2130)
|
#if HAS_TRINAMIC
|
||||||
if (!forReplay) {
|
if (!forReplay) {
|
||||||
CONFIG_ECHO_START;
|
CONFIG_ECHO_START;
|
||||||
SERIAL_ECHOLNPGM("Stepper driver current:");
|
SERIAL_ECHOLNPGM("Stepper driver current:");
|
||||||
|
@ -2088,7 +2090,7 @@ void MarlinSettings::reset() {
|
||||||
/**
|
/**
|
||||||
* TMC2130 Sensorless homing thresholds
|
* TMC2130 Sensorless homing thresholds
|
||||||
*/
|
*/
|
||||||
#if ENABLED(HAVE_TMC2130) && ENABLED(SENSORLESS_HOMING)
|
#if ENABLED(SENSORLESS_HOMING)
|
||||||
if (!forReplay) {
|
if (!forReplay) {
|
||||||
CONFIG_ECHO_START;
|
CONFIG_ECHO_START;
|
||||||
SERIAL_ECHOLNPGM("Sensorless homing threshold:");
|
SERIAL_ECHOLNPGM("Sensorless homing threshold:");
|
||||||
|
|
Loading…
Reference in a new issue