💥 Rename ExtUI settings methods

This commit is contained in:
Scott Lahteine
2022-03-29 03:38:25 -05:00
committed by Scott Lahteine
parent b0d621d8b9
commit 4ec9af42b8
11 changed files with 22 additions and 21 deletions

View File

@ -94,12 +94,12 @@ namespace ExtUI {
// Called after loading or resetting stored settings
}
void onConfigurationStoreWritten(bool success) {
void onSettingsStored(bool success) {
// Called after the entire EEPROM has been written,
// whether successful or not.
}
void onConfigurationStoreRead(bool success) {
void onSettingsLoaded(bool success) {
// Called after the entire EEPROM has been read,
// whether successful or not.
}

View File

@ -83,12 +83,12 @@ namespace ExtUI {
// Called after loading or resetting stored settings
}
void onConfigurationStoreWritten(bool success) {
void onSettingsStored(bool success) {
// Called after the entire EEPROM has been written,
// whether successful or not.
}
void onConfigurationStoreRead(bool success) {
void onSettingsLoaded(bool success) {
// Called after the entire EEPROM has been read,
// whether successful or not.
}

View File

@ -102,12 +102,12 @@ namespace ExtUI {
// Called after loading or resetting stored settings
}
void onConfigurationStoreWritten(bool success) {
void onSettingsStored(bool success) {
// Called after the entire EEPROM has been written,
// whether successful or not.
}
void onConfigurationStoreRead(bool success) {
void onSettingsLoaded(bool success) {
// Called after the entire EEPROM has been read,
// whether successful or not.
}

View File

@ -100,11 +100,11 @@ namespace ExtUI {
void onPostprocessSettings() {}
void onConfigurationStoreWritten(bool success) {
void onSettingsStored(bool success) {
dgus_screen_handler.ConfigurationStoreWritten(success);
}
void onConfigurationStoreRead(bool success) {
void onSettingsLoaded(bool success) {
dgus_screen_handler.ConfigurationStoreRead(success);
}

View File

@ -88,12 +88,12 @@ namespace ExtUI {
// Called after loading or resetting stored settings
}
void onConfigurationStoreWritten(bool success) {
void onSettingsStored(bool success) {
// Called after the entire EEPROM has been written,
// whether successful or not.
}
void onConfigurationStoreRead(bool success) {
void onSettingsLoaded(bool success) {
// Called after the entire EEPROM has been read,
// whether successful or not.
}

View File

@ -97,7 +97,7 @@ namespace ExtUI {
void onLoadSettings(const char *buff) { InterfaceSettingsScreen::loadSettings(buff); }
void onPostprocessSettings() {} // Called after loading or resetting stored settings
void onConfigurationStoreWritten(bool success) {
void onSettingsStored(bool success) {
#ifdef ARCHIM2_SPI_FLASH_EEPROM_BACKUP_SIZE
if (success && InterfaceSettingsScreen::backupEEPROM()) {
SERIAL_ECHOLNPGM("EEPROM backed up to SPI Flash");
@ -106,7 +106,7 @@ namespace ExtUI {
UNUSED(success);
#endif
}
void onConfigurationStoreRead(bool) {}
void onSettingsLoaded(bool) {}
void onPlayTone(const uint16_t frequency, const uint16_t duration) { sound.play_tone(frequency, duration); }

View File

@ -147,8 +147,8 @@ namespace ExtUI {
void onStoreSettings(char*) {}
void onLoadSettings(const char*) {}
void onPostprocessSettings() {}
void onConfigurationStoreWritten(bool) {}
void onConfigurationStoreRead(bool) {}
void onSettingsStored(bool) {}
void onSettingsLoaded(bool) {}
#if HAS_MESH
void onLevelingStart() {}

View File

@ -79,12 +79,12 @@ namespace ExtUI {
// Called after loading or resetting stored settings
}
void onConfigurationStoreWritten(bool success) {
void onSettingsStored(bool success) {
// Called after the entire EEPROM has been written,
// whether successful or not.
}
void onConfigurationStoreRead(bool success) {
void onSettingsLoaded(bool success) {
// Called after the entire EEPROM has been read,
// whether successful or not.
}
@ -117,6 +117,7 @@ namespace ExtUI {
void onSteppersDisabled() {}
void onSteppersEnabled() {}
}
#endif // NEXTION_TFT

View File

@ -420,8 +420,8 @@ namespace ExtUI {
void onStoreSettings(char *);
void onLoadSettings(const char *);
void onPostprocessSettings();
void onConfigurationStoreWritten(bool success);
void onConfigurationStoreRead(bool success);
void onSettingsStored(bool success);
void onSettingsLoaded(bool success);
#if ENABLED(POWER_LOSS_RECOVERY)
void onPowerLossResume();
#endif