Browse Source

Add EEPROM_BOOT_SILENT option

Scott Lahteine 4 years ago
parent
commit
090a90a036
2 changed files with 4 additions and 1 deletions
  1. 1
    0
      Marlin/Configuration.h
  2. 3
    1
      Marlin/src/module/configuration_store.cpp

+ 1
- 0
Marlin/Configuration.h View File

@@ -1446,6 +1446,7 @@
1446 1446
 //#define EEPROM_SETTINGS     // Persistent storage with M500 and M501
1447 1447
 //#define DISABLE_M503        // Saves ~2700 bytes of PROGMEM. Disable for release!
1448 1448
 #define EEPROM_CHITCHAT       // Give feedback on EEPROM commands. Disable to save PROGMEM.
1449
+#define EEPROM_BOOT_SILENT    // Keep M503 quiet and only give errors during first load
1449 1450
 #if ENABLED(EEPROM_SETTINGS)
1450 1451
   //#define EEPROM_AUTO_INIT  // Init EEPROM automatically on any errors.
1451 1452
 #endif

+ 3
- 1
Marlin/src/module/configuration_store.cpp View File

@@ -2185,8 +2185,10 @@ void MarlinSettings::postprocess() {
2185 2185
     }
2186 2186
 
2187 2187
     #if ENABLED(EEPROM_CHITCHAT) && DISABLED(DISABLE_M503)
2188
-      if (!validating) report();
2188
+      // Report the EEPROM settings
2189
+      if (!validating && (DISABLED(EEPROM_BOOT_SILENT) || IsRunning())) report();
2189 2190
     #endif
2191
+
2190 2192
     EEPROM_FINISH();
2191 2193
 
2192 2194
     return !eeprom_error;

Loading…
Cancel
Save