Commit 030509f1 authored by MagoKimbra's avatar MagoKimbra

Add DISABLE_M503

parent 507748e3
......@@ -527,9 +527,10 @@ your extruder heater takes 2 minutes to hit the target on heating.
// M502 - reverts to the default "factory settings". You still need to store them in EEPROM afterwards if you want to.
//define this to enable EEPROM support
//#define EEPROM_SETTINGS
#define EEPROM_CHITCHAT
// to disable EEPROM Serial responses and decrease program space by ~1700 byte: comment this out:
// please keep turned on if you can.
#define EEPROM_CHITCHAT
//#define DISABLE_M503
//========================= Bowden Filament management ======================
//#define EASY_LOAD
......
......@@ -380,7 +380,7 @@ void Config_ResetDefault()
SERIAL_ECHOLNPGM("Hardcoded Default Settings Loaded");
}
#ifdef EEPROM_CHITCHAT
#ifndef DISABLE_M503
void Config_PrintSettings()
{ // Always have this function, even with EEPROM_SETTINGS disabled, the current values will be shown
SERIAL_ECHO_START;
......@@ -604,4 +604,4 @@ void Config_ResetDefault()
}
#endif //FWRETRACT
}
#endif //EEPROM_CHITCHAT
#endif //!DISABLE_M503
......@@ -6,17 +6,17 @@
void Config_ResetDefault();
#ifndef DISABLE_M503
void Config_PrintSettings();
void Config_PrintSettings();
#else
FORCE_INLINE void Config_PrintSettings() {}
FORCE_INLINE void Config_PrintSettings() {}
#endif
#ifdef EEPROM_SETTINGS
void Config_StoreSettings();
void Config_RetrieveSettings();
void Config_StoreSettings();
void Config_RetrieveSettings();
#else
FORCE_INLINE void Config_StoreSettings() {}
FORCE_INLINE void Config_RetrieveSettings() { Config_ResetDefault(); Config_PrintSettings(); }
FORCE_INLINE void Config_StoreSettings() {}
FORCE_INLINE void Config_RetrieveSettings() { Config_ResetDefault(); Config_PrintSettings(); }
#endif
#endif//CONFIG_STORE_H
#endif //CONFIG_STORE_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment