🚸 JyersUI updates (#24451)
This commit is contained in:
parent
58048e7748
commit
509dfe92d0
32 changed files with 4336 additions and 984 deletions
|
|
@ -503,7 +503,7 @@ typedef struct SettingsDataStruct {
|
|||
#if ENABLED(DWIN_LCD_PROUI)
|
||||
uint8_t dwin_data[eeprom_data_size];
|
||||
#elif ENABLED(DWIN_CREALITY_LCD_JYERSUI)
|
||||
uint8_t dwin_settings[CrealityDWIN.eeprom_data_size];
|
||||
uint8_t dwin_settings[eeprom_data_size];
|
||||
#endif
|
||||
|
||||
//
|
||||
|
|
@ -1525,7 +1525,7 @@ void MarlinSettings::postprocess() {
|
|||
#if ENABLED(DWIN_CREALITY_LCD_JYERSUI)
|
||||
{
|
||||
_FIELD_TEST(dwin_settings);
|
||||
char dwin_settings[CrealityDWIN.eeprom_data_size] = { 0 };
|
||||
char dwin_settings[eeprom_data_size] = { 0 };
|
||||
CrealityDWIN.Save_Settings(dwin_settings);
|
||||
EEPROM_WRITE(dwin_settings);
|
||||
}
|
||||
|
|
@ -2497,7 +2497,7 @@ void MarlinSettings::postprocess() {
|
|||
}
|
||||
#elif ENABLED(DWIN_CREALITY_LCD_JYERSUI)
|
||||
{
|
||||
const char dwin_settings[CrealityDWIN.eeprom_data_size] = { 0 };
|
||||
const char dwin_settings[eeprom_data_size] = { 0 };
|
||||
_FIELD_TEST(dwin_settings);
|
||||
EEPROM_READ(dwin_settings);
|
||||
if (!validating) CrealityDWIN.Load_Settings(dwin_settings);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue