|
|
@ -29,8 +29,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
class MarlinSettings {
|
|
|
|
class MarlinSettings {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
MarlinSettings() { }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static uint16_t datasize();
|
|
|
|
static uint16_t datasize();
|
|
|
|
|
|
|
|
|
|
|
|
static void reset();
|
|
|
|
static void reset();
|
|
|
@ -55,9 +53,15 @@ class MarlinSettings {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(EEPROM_SETTINGS)
|
|
|
|
#if ENABLED(EEPROM_SETTINGS)
|
|
|
|
|
|
|
|
|
|
|
|
static bool load(); // Return 'true' if data was loaded ok
|
|
|
|
static bool load(); // Return 'true' if data was loaded ok
|
|
|
|
static bool validate(); // Return 'true' if EEPROM data is ok
|
|
|
|
static bool validate(); // Return 'true' if EEPROM data is ok
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static inline void first_load() {
|
|
|
|
|
|
|
|
static bool loaded = false;
|
|
|
|
|
|
|
|
if (!loaded && load()) loaded = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if ENABLED(AUTO_BED_LEVELING_UBL) // Eventually make these available if any leveling system
|
|
|
|
#if ENABLED(AUTO_BED_LEVELING_UBL) // Eventually make these available if any leveling system
|
|
|
|
// That can store is enabled
|
|
|
|
// That can store is enabled
|
|
|
|
static uint16_t meshes_start_index();
|
|
|
|
static uint16_t meshes_start_index();
|
|
|
@ -73,6 +77,8 @@ class MarlinSettings {
|
|
|
|
#else
|
|
|
|
#else
|
|
|
|
FORCE_INLINE
|
|
|
|
FORCE_INLINE
|
|
|
|
static bool load() { reset(); report(); return true; }
|
|
|
|
static bool load() { reset(); report(); return true; }
|
|
|
|
|
|
|
|
FORCE_INLINE
|
|
|
|
|
|
|
|
static void first_load() { (void)load(); }
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#if DISABLED(DISABLE_M503)
|
|
|
|
#if DISABLED(DISABLE_M503)
|
|
|
|