Skip to content
Snippets Groups Projects
Commit c7c8cfed authored by Scott Lahteine's avatar Scott Lahteine Committed by Richard Wackerbarth
Browse files

Complete M200 output with M503

- The contents of EEPROM include filament diameters even with
Volumetric disabled. This change makes `M503` display the full
volumetric settings so that playing back the output of `M503 S0` will
fully restore them.
parent 4a58e447
Branches
Tags
No related merge requests found
...@@ -826,16 +826,21 @@ void Config_PrintSettings(bool forReplay) { ...@@ -826,16 +826,21 @@ void Config_PrintSettings(bool forReplay) {
#endif // FWRETRACT #endif // FWRETRACT
if (volumetric_enabled) { /**
* Volumetric extrusion M200
*/
if (!forReplay) { if (!forReplay) {
CONFIG_ECHO_START; CONFIG_ECHO_START;
SERIAL_ECHOLNPGM("Filament settings:"); SERIAL_ECHOPGM("Filament settings:");
if (volumetric_enabled)
SERIAL_EOL;
else
SERIAL_ECHOLNPGM(" Disabled");
} }
CONFIG_ECHO_START; CONFIG_ECHO_START;
SERIAL_ECHOPAIR(" M200 D", filament_size[0]); SERIAL_ECHOPAIR(" M200 D", filament_size[0]);
SERIAL_EOL; SERIAL_EOL;
#if EXTRUDERS > 1 #if EXTRUDERS > 1
CONFIG_ECHO_START; CONFIG_ECHO_START;
SERIAL_ECHOPAIR(" M200 T1 D", filament_size[1]); SERIAL_ECHOPAIR(" M200 T1 D", filament_size[1]);
...@@ -852,13 +857,14 @@ void Config_PrintSettings(bool forReplay) { ...@@ -852,13 +857,14 @@ void Config_PrintSettings(bool forReplay) {
#endif #endif
#endif #endif
} else { if (!volumetric_enabled) {
if (!forReplay) {
CONFIG_ECHO_START; CONFIG_ECHO_START;
SERIAL_ECHOLNPGM("Filament settings: Disabled"); SERIAL_ECHOLNPGM(" M200 D0");
}
} }
/**
* Auto Bed Leveling
*/
#ifdef ENABLE_AUTO_BED_LEVELING #ifdef ENABLE_AUTO_BED_LEVELING
#ifdef CUSTOM_M_CODES #ifdef CUSTOM_M_CODES
if (!forReplay) { if (!forReplay) {
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment