|
@ -2946,7 +2946,7 @@ void MarlinSettings::reset() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#define CONFIG_ECHO_START() do{ if (!forReplay) SERIAL_ECHO_START(); }while(0) |
|
|
#define CONFIG_ECHO_START() do{ if (!forReplay) SERIAL_ECHO_START(); }while(0) |
|
|
#define CONFIG_ECHO_MSG(STR) do{ CONFIG_ECHO_START(); SERIAL_ECHOLNPGM(STR); }while(0) |
|
|
#define CONFIG_ECHO_MSG(V...) do{ CONFIG_ECHO_START(); SERIAL_ECHOLNPAIR(V); }while(0) |
|
|
#define CONFIG_ECHO_HEADING(STR) config_heading(forReplay, PSTR(STR)) |
|
|
#define CONFIG_ECHO_HEADING(STR) config_heading(forReplay, PSTR(STR)) |
|
|
|
|
|
|
|
|
#if HAS_TRINAMIC_CONFIG |
|
|
#if HAS_TRINAMIC_CONFIG |
|
@ -3039,8 +3039,7 @@ void MarlinSettings::reset() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#if EXTRUDERS == 1 |
|
|
#if EXTRUDERS == 1 |
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_MSG(" M200 S", int(parser.volumetric_enabled) |
|
|
SERIAL_ECHOLNPAIR(" M200 S", int(parser.volumetric_enabled) |
|
|
|
|
|
, " D", LINEAR_UNIT(planner.filament_size[0]) |
|
|
, " D", LINEAR_UNIT(planner.filament_size[0]) |
|
|
#if ENABLED(VOLUMETRIC_EXTRUDER_LIMIT) |
|
|
#if ENABLED(VOLUMETRIC_EXTRUDER_LIMIT) |
|
|
, " L", LINEAR_UNIT(planner.volumetric_extruder_limit[0]) |
|
|
, " L", LINEAR_UNIT(planner.volumetric_extruder_limit[0]) |
|
@ -3048,17 +3047,16 @@ void MarlinSettings::reset() { |
|
|
); |
|
|
); |
|
|
#else |
|
|
#else |
|
|
LOOP_L_N(i, EXTRUDERS) { |
|
|
LOOP_L_N(i, EXTRUDERS) { |
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_MSG(" M200 T", int(i) |
|
|
SERIAL_ECHOLNPAIR(" M200 T", int(i) |
|
|
|
|
|
, " D", LINEAR_UNIT(planner.filament_size[i]) |
|
|
, " D", LINEAR_UNIT(planner.filament_size[i]) |
|
|
#if ENABLED(VOLUMETRIC_EXTRUDER_LIMIT) |
|
|
#if ENABLED(VOLUMETRIC_EXTRUDER_LIMIT) |
|
|
, " L", LINEAR_UNIT(planner.volumetric_extruder_limit[i]) |
|
|
, " L", LINEAR_UNIT(planner.volumetric_extruder_limit[i]) |
|
|
#endif |
|
|
#endif |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_MSG(" M200 S", int(parser.volumetric_enabled)); |
|
|
SERIAL_ECHOLNPAIR(" M200 S", int(parser.volumetric_enabled)); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#endif // EXTRUDERS && !NO_VOLUMETRICS
|
|
|
#endif // EXTRUDERS && !NO_VOLUMETRICS
|
|
|
|
|
|
|
|
|
CONFIG_ECHO_HEADING("Steps per unit:"); |
|
|
CONFIG_ECHO_HEADING("Steps per unit:"); |
|
@ -3194,7 +3192,7 @@ void MarlinSettings::reset() { |
|
|
|
|
|
|
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_START(); |
|
|
SERIAL_ECHOLNPAIR_P( |
|
|
SERIAL_ECHOLNPAIR_P( |
|
|
PSTR(" M420 S"), planner.leveling_active ? 1 : 0 |
|
|
PSTR(" M420 S"), int(planner.leveling_active) |
|
|
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT) |
|
|
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT) |
|
|
, SP_Z_STR, LINEAR_UNIT(planner.z_fade_height) |
|
|
, SP_Z_STR, LINEAR_UNIT(planner.z_fade_height) |
|
|
#endif |
|
|
#endif |
|
@ -3260,8 +3258,7 @@ void MarlinSettings::reset() { |
|
|
#elif ENABLED(BLTOUCH) || (HAS_Z_SERVO_PROBE && defined(Z_SERVO_ANGLES)) |
|
|
#elif ENABLED(BLTOUCH) || (HAS_Z_SERVO_PROBE && defined(Z_SERVO_ANGLES)) |
|
|
case Z_PROBE_SERVO_NR: |
|
|
case Z_PROBE_SERVO_NR: |
|
|
#endif |
|
|
#endif |
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_MSG(" M281 P", int(i), " L", servo_angles[i][0], " U", servo_angles[i][1]); |
|
|
SERIAL_ECHOLNPAIR(" M281 P", int(i), " L", servo_angles[i][0], " U", servo_angles[i][1]); |
|
|
|
|
|
default: break; |
|
|
default: break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -3382,8 +3379,7 @@ void MarlinSettings::reset() { |
|
|
#endif // PIDTEMP
|
|
|
#endif // PIDTEMP
|
|
|
|
|
|
|
|
|
#if ENABLED(PIDTEMPBED) |
|
|
#if ENABLED(PIDTEMPBED) |
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_MSG( |
|
|
SERIAL_ECHOLNPAIR( |
|
|
|
|
|
" M304 P", thermalManager.temp_bed.pid.Kp |
|
|
" M304 P", thermalManager.temp_bed.pid.Kp |
|
|
, " I", unscalePID_i(thermalManager.temp_bed.pid.Ki) |
|
|
, " I", unscalePID_i(thermalManager.temp_bed.pid.Ki) |
|
|
, " D", unscalePID_d(thermalManager.temp_bed.pid.Kd) |
|
|
, " D", unscalePID_d(thermalManager.temp_bed.pid.Kd) |
|
@ -3400,16 +3396,14 @@ void MarlinSettings::reset() { |
|
|
|
|
|
|
|
|
#if HAS_LCD_CONTRAST |
|
|
#if HAS_LCD_CONTRAST |
|
|
CONFIG_ECHO_HEADING("LCD Contrast:"); |
|
|
CONFIG_ECHO_HEADING("LCD Contrast:"); |
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_MSG(" M250 C", ui.contrast); |
|
|
SERIAL_ECHOLNPAIR(" M250 C", ui.contrast); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
TERN_(CONTROLLER_FAN_EDITABLE, M710_report(forReplay)); |
|
|
TERN_(CONTROLLER_FAN_EDITABLE, M710_report(forReplay)); |
|
|
|
|
|
|
|
|
#if ENABLED(POWER_LOSS_RECOVERY) |
|
|
#if ENABLED(POWER_LOSS_RECOVERY) |
|
|
CONFIG_ECHO_HEADING("Power-Loss Recovery:"); |
|
|
CONFIG_ECHO_HEADING("Power-Loss Recovery:"); |
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_MSG(" M413 S", int(recovery.enabled)); |
|
|
SERIAL_ECHOLNPAIR(" M413 S", int(recovery.enabled)); |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
#if ENABLED(FWRETRACT) |
|
|
#if ENABLED(FWRETRACT) |
|
@ -3424,8 +3418,7 @@ void MarlinSettings::reset() { |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
CONFIG_ECHO_HEADING("Recover: S<length> F<units/m>"); |
|
|
CONFIG_ECHO_HEADING("Recover: S<length> F<units/m>"); |
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_MSG( |
|
|
SERIAL_ECHOLNPAIR( |
|
|
|
|
|
" M208 S", LINEAR_UNIT(fwretract.settings.retract_recover_extra) |
|
|
" M208 S", LINEAR_UNIT(fwretract.settings.retract_recover_extra) |
|
|
, " W", LINEAR_UNIT(fwretract.settings.swap_retract_recover_extra) |
|
|
, " W", LINEAR_UNIT(fwretract.settings.swap_retract_recover_extra) |
|
|
, " F", LINEAR_UNIT(MMS_TO_MMM(fwretract.settings.retract_recover_feedrate_mm_s)) |
|
|
, " F", LINEAR_UNIT(MMS_TO_MMM(fwretract.settings.retract_recover_feedrate_mm_s)) |
|
@ -3434,8 +3427,7 @@ void MarlinSettings::reset() { |
|
|
#if ENABLED(FWRETRACT_AUTORETRACT) |
|
|
#if ENABLED(FWRETRACT_AUTORETRACT) |
|
|
|
|
|
|
|
|
CONFIG_ECHO_HEADING("Auto-Retract: S=0 to disable, 1 to interpret E-only moves as retract/recover"); |
|
|
CONFIG_ECHO_HEADING("Auto-Retract: S=0 to disable, 1 to interpret E-only moves as retract/recover"); |
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_MSG(" M209 S", int(fwretract.autoretract_enabled)); |
|
|
SERIAL_ECHOLNPAIR(" M209 S", fwretract.autoretract_enabled ? 1 : 0); |
|
|
|
|
|
|
|
|
|
|
|
#endif // FWRETRACT_AUTORETRACT
|
|
|
#endif // FWRETRACT_AUTORETRACT
|
|
|
|
|
|
|
|
@ -3780,13 +3772,10 @@ void MarlinSettings::reset() { |
|
|
#if ENABLED(LIN_ADVANCE) |
|
|
#if ENABLED(LIN_ADVANCE) |
|
|
CONFIG_ECHO_HEADING("Linear Advance:"); |
|
|
CONFIG_ECHO_HEADING("Linear Advance:"); |
|
|
#if EXTRUDERS < 2 |
|
|
#if EXTRUDERS < 2 |
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_MSG(" M900 K", planner.extruder_advance_K[0]); |
|
|
SERIAL_ECHOLNPAIR(" M900 K", planner.extruder_advance_K[0]); |
|
|
|
|
|
#else |
|
|
#else |
|
|
LOOP_L_N(i, EXTRUDERS) { |
|
|
LOOP_L_N(i, EXTRUDERS) |
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_MSG(" M900 T", int(i), " K", planner.extruder_advance_K[i]); |
|
|
SERIAL_ECHOLNPAIR(" M900 T", int(i), " K", planner.extruder_advance_K[i]); |
|
|
|
|
|
} |
|
|
|
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
@ -3851,8 +3840,7 @@ void MarlinSettings::reset() { |
|
|
|
|
|
|
|
|
#if HAS_FILAMENT_SENSOR |
|
|
#if HAS_FILAMENT_SENSOR |
|
|
CONFIG_ECHO_HEADING("Filament runout sensor:"); |
|
|
CONFIG_ECHO_HEADING("Filament runout sensor:"); |
|
|
CONFIG_ECHO_START(); |
|
|
CONFIG_ECHO_MSG( |
|
|
SERIAL_ECHOLNPAIR( |
|
|
|
|
|
" M412 S", int(runout.enabled) |
|
|
" M412 S", int(runout.enabled) |
|
|
#if HAS_FILAMENT_RUNOUT_DISTANCE |
|
|
#if HAS_FILAMENT_RUNOUT_DISTANCE |
|
|
, " D", LINEAR_UNIT(runout.runout_distance()) |
|
|
, " D", LINEAR_UNIT(runout.runout_distance()) |
|
|