Browse Source

More EEPROM cleanup

pull/1/head
Scott Lahteine 5 years ago
parent
commit
6320f9795c
  1. 41
      Marlin/src/module/configuration_store.cpp

41
Marlin/src/module/configuration_store.cpp

@ -2768,7 +2768,7 @@ void MarlinSettings::reset() {
static void config_heading(const bool repl, PGM_P const pstr, const bool eol=true) {
if (!repl) {
CONFIG_ECHO_START();
SERIAL_ECHO_START();
SERIAL_ECHOPGM("; ");
serialprintPGM(pstr);
if (eol) SERIAL_EOL();
@ -2777,7 +2777,7 @@ void MarlinSettings::reset() {
#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_HEADING(STR, V...) config_heading(forReplay, PSTR(STR), V)
#define CONFIG_ECHO_HEADING(STR) config_heading(forReplay, PSTR(STR))
#if HAS_TRINAMIC
inline void say_M906(const bool forReplay) { CONFIG_ECHO_START(); SERIAL_ECHOPGM(" M906"); }
@ -2861,8 +2861,7 @@ void MarlinSettings::reset() {
* Volumetric extrusion M200
*/
if (!forReplay) {
CONFIG_ECHO_START();
SERIAL_ECHOPGM("Filament settings:");
config_heading(forReplay, PSTR("Filament settings:"), false);
if (parser.volumetric_enabled)
SERIAL_EOL();
else
@ -2936,20 +2935,18 @@ void MarlinSettings::reset() {
, SP_T_STR, LINEAR_UNIT(planner.settings.travel_acceleration)
);
if (!forReplay) {
CONFIG_ECHO_START();
SERIAL_ECHOPGM("Advanced: B<min_segment_time_us> S<min_feedrate> T<min_travel_feedrate>");
CONFIG_ECHO_HEADING(
"Advanced: B<min_segment_time_us> S<min_feedrate> T<min_travel_feedrate>"
#if DISABLED(CLASSIC_JERK)
SERIAL_ECHOPGM(" J<junc_dev>");
" J<junc_dev>"
#endif
#if HAS_CLASSIC_JERK
SERIAL_ECHOPGM(" X<max_x_jerk> Y<max_y_jerk> Z<max_z_jerk>");
" X<max_x_jerk> Y<max_y_jerk> Z<max_z_jerk>"
#if HAS_CLASSIC_E_JERK
SERIAL_ECHOPGM(" E<max_e_jerk>");
" E<max_e_jerk>"
#endif
#endif
SERIAL_EOL();
}
);
CONFIG_ECHO_START();
SERIAL_ECHOLNPAIR_P(
PSTR(" M205 B"), LINEAR_UNIT(planner.settings.min_segment_time_us)
@ -3007,10 +3004,11 @@ void MarlinSettings::reset() {
#elif ENABLED(AUTO_BED_LEVELING_UBL)
config_heading(forReplay, PSTR(""), false);
if (!forReplay) {
CONFIG_ECHO_START();
ubl.echo_name();
SERIAL_ECHOLNPGM(":");
SERIAL_CHAR(':');
SERIAL_EOL();
}
#elif HAS_ABL_OR_UBL
@ -3046,8 +3044,12 @@ void MarlinSettings::reset() {
if (!forReplay) {
SERIAL_EOL();
ubl.report_state();
SERIAL_ECHOLNPAIR("\nActive Mesh Slot: ", ubl.storage_slot);
SERIAL_ECHOLNPAIR("EEPROM can hold ", calc_num_meshes(), " meshes.\n");
SERIAL_EOL();
config_heading(false, PSTR("Active Mesh Slot: "), false);
SERIAL_ECHOLN(ubl.storage_slot);
config_heading(false, PSTR("EEPROM can hold "), false);
SERIAL_ECHO(calc_num_meshes());
SERIAL_ECHOLNPGM(" meshes.\n");
}
//ubl.report_current_mesh(); // This is too verbose for large meshes. A better (more terse)
@ -3257,11 +3259,8 @@ void MarlinSettings::reset() {
* Probe Offset
*/
#if HAS_BED_PROBE
if (!forReplay) {
CONFIG_ECHO_START();
SERIAL_ECHOPGM("Z-Probe Offset");
say_units(true);
}
config_heading(forReplay, PSTR("Z-Probe Offset"), false);
if (!forReplay) say_units(true);
CONFIG_ECHO_START();
SERIAL_ECHOLNPAIR_P(
#if HAS_PROBE_XY_OFFSET

Loading…
Cancel
Save