Browse Source

Print error for M500 with disabled EEPROM

pull/1/head
Scott Lahteine 8 years ago
parent
commit
97115d56f9
  1. 9
      Marlin/configuration_store.cpp
  2. 3
      Marlin/configuration_store.h

9
Marlin/configuration_store.cpp

@ -565,7 +565,14 @@ void Config_RetrieveSettings() {
#endif #endif
} }
#endif // EEPROM_SETTINGS #else // !EEPROM_SETTINGS
void Config_StoreSettings() {
SERIAL_ERROR_START;
SERIAL_ERRORLNPGM("EEPROM disabled");
}
#endif // !EEPROM_SETTINGS
/** /**
* M502 - Reset Configuration * M502 - Reset Configuration

3
Marlin/configuration_store.h

@ -26,6 +26,7 @@
#include "MarlinConfig.h" #include "MarlinConfig.h"
void Config_ResetDefault(); void Config_ResetDefault();
void Config_StoreSettings();
#if DISABLED(DISABLE_M503) #if DISABLED(DISABLE_M503)
void Config_PrintSettings(bool forReplay=false); void Config_PrintSettings(bool forReplay=false);
@ -34,10 +35,8 @@ void Config_ResetDefault();
#endif #endif
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)
void Config_StoreSettings();
void Config_RetrieveSettings(); void Config_RetrieveSettings();
#else #else
FORCE_INLINE void Config_StoreSettings() {}
FORCE_INLINE void Config_RetrieveSettings() { Config_ResetDefault(); Config_PrintSettings(); } FORCE_INLINE void Config_RetrieveSettings() { Config_ResetDefault(); Config_PrintSettings(); }
#endif #endif

Loading…
Cancel
Save