Print error for M500 with disabled EEPROM
This commit is contained in:
parent
67ab54185b
commit
97115d56f9
2 changed files with 9 additions and 3 deletions
|
@ -565,7 +565,14 @@ void Config_RetrieveSettings() {
|
|||
#endif
|
||||
}
|
||||
|
||||
#endif // EEPROM_SETTINGS
|
||||
#else // !EEPROM_SETTINGS
|
||||
|
||||
void Config_StoreSettings() {
|
||||
SERIAL_ERROR_START;
|
||||
SERIAL_ERRORLNPGM("EEPROM disabled");
|
||||
}
|
||||
|
||||
#endif // !EEPROM_SETTINGS
|
||||
|
||||
/**
|
||||
* M502 - Reset Configuration
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "MarlinConfig.h"
|
||||
|
||||
void Config_ResetDefault();
|
||||
void Config_StoreSettings();
|
||||
|
||||
#if DISABLED(DISABLE_M503)
|
||||
void Config_PrintSettings(bool forReplay=false);
|
||||
|
@ -34,10 +35,8 @@ void Config_ResetDefault();
|
|||
#endif
|
||||
|
||||
#if ENABLED(EEPROM_SETTINGS)
|
||||
void Config_StoreSettings();
|
||||
void Config_RetrieveSettings();
|
||||
#else
|
||||
FORCE_INLINE void Config_StoreSettings() {}
|
||||
FORCE_INLINE void Config_RetrieveSettings() { Config_ResetDefault(); Config_PrintSettings(); }
|
||||
#endif
|
||||
|
||||
|
|
Reference in a new issue