ExtUI::onPostprocessSettings (#21683)
This commit is contained in:
parent
3ae0557258
commit
b9715c5a03
@ -88,6 +88,10 @@ namespace ExtUI {
|
|||||||
// memcpy(&myDataStruct, buff, sizeof(myDataStruct));
|
// memcpy(&myDataStruct, buff, sizeof(myDataStruct));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void onPostprocessSettings() {
|
||||||
|
// Called after loading or resetting stored settings
|
||||||
|
}
|
||||||
|
|
||||||
void onConfigurationStoreWritten(bool success) {
|
void onConfigurationStoreWritten(bool success) {
|
||||||
// Called after the entire EEPROM has been written,
|
// Called after the entire EEPROM has been written,
|
||||||
// whether successful or not.
|
// whether successful or not.
|
||||||
|
@ -79,6 +79,10 @@ namespace ExtUI {
|
|||||||
// memcpy(&myDataStruct, buff, sizeof(myDataStruct));
|
// memcpy(&myDataStruct, buff, sizeof(myDataStruct));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void onPostprocessSettings() {
|
||||||
|
// Called after loading or resetting stored settings
|
||||||
|
}
|
||||||
|
|
||||||
void onConfigurationStoreWritten(bool success) {
|
void onConfigurationStoreWritten(bool success) {
|
||||||
// Called after the entire EEPROM has been written,
|
// Called after the entire EEPROM has been written,
|
||||||
// whether successful or not.
|
// whether successful or not.
|
||||||
|
@ -98,6 +98,10 @@ namespace ExtUI {
|
|||||||
// memcpy(&myDataStruct, buff, sizeof(myDataStruct));
|
// memcpy(&myDataStruct, buff, sizeof(myDataStruct));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void onPostprocessSettings() {
|
||||||
|
// Called after loading or resetting stored settings
|
||||||
|
}
|
||||||
|
|
||||||
void onConfigurationStoreWritten(bool success) {
|
void onConfigurationStoreWritten(bool success) {
|
||||||
// Called after the entire EEPROM has been written,
|
// Called after the entire EEPROM has been written,
|
||||||
// whether successful or not.
|
// whether successful or not.
|
||||||
|
@ -84,6 +84,10 @@ namespace ExtUI {
|
|||||||
// memcpy(&myDataStruct, buff, sizeof(myDataStruct));
|
// memcpy(&myDataStruct, buff, sizeof(myDataStruct));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void onPostprocessSettings() {
|
||||||
|
// Called after loading or resetting stored settings
|
||||||
|
}
|
||||||
|
|
||||||
void onConfigurationStoreWritten(bool success) {
|
void onConfigurationStoreWritten(bool success) {
|
||||||
// Called after the entire EEPROM has been written,
|
// Called after the entire EEPROM has been written,
|
||||||
// whether successful or not.
|
// whether successful or not.
|
||||||
|
@ -113,6 +113,10 @@ namespace ExtUI {
|
|||||||
InterfaceSettingsScreen::loadSettings(buff);
|
InterfaceSettingsScreen::loadSettings(buff);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void onPostprocessSettings() {
|
||||||
|
// Called after loading or resetting stored settings
|
||||||
|
}
|
||||||
|
|
||||||
void onConfigurationStoreWritten(bool success) {
|
void onConfigurationStoreWritten(bool success) {
|
||||||
#ifdef ARCHIM2_SPI_FLASH_EEPROM_BACKUP_SIZE
|
#ifdef ARCHIM2_SPI_FLASH_EEPROM_BACKUP_SIZE
|
||||||
if (success && InterfaceSettingsScreen::backupEEPROM()) {
|
if (success && InterfaceSettingsScreen::backupEEPROM()) {
|
||||||
|
@ -519,6 +519,7 @@ namespace ExtUI {
|
|||||||
void onFactoryReset() {}
|
void onFactoryReset() {}
|
||||||
void onStoreSettings(char*) {}
|
void onStoreSettings(char*) {}
|
||||||
void onLoadSettings(const char*) {}
|
void onLoadSettings(const char*) {}
|
||||||
|
void onPostprocessSettings() {}
|
||||||
void onConfigurationStoreWritten(bool) {}
|
void onConfigurationStoreWritten(bool) {}
|
||||||
void onConfigurationStoreRead(bool) {}
|
void onConfigurationStoreRead(bool) {}
|
||||||
|
|
||||||
|
@ -75,6 +75,10 @@ namespace ExtUI {
|
|||||||
// memcpy(&myDataStruct, buff, sizeof(myDataStruct));
|
// memcpy(&myDataStruct, buff, sizeof(myDataStruct));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void onPostprocessSettings() {
|
||||||
|
// Called after loading or resetting stored settings
|
||||||
|
}
|
||||||
|
|
||||||
void onConfigurationStoreWritten(bool success) {
|
void onConfigurationStoreWritten(bool success) {
|
||||||
// Called after the entire EEPROM has been written,
|
// Called after the entire EEPROM has been written,
|
||||||
// whether successful or not.
|
// whether successful or not.
|
||||||
|
@ -389,6 +389,7 @@ namespace ExtUI {
|
|||||||
void onFactoryReset();
|
void onFactoryReset();
|
||||||
void onStoreSettings(char *);
|
void onStoreSettings(char *);
|
||||||
void onLoadSettings(const char *);
|
void onLoadSettings(const char *);
|
||||||
|
void onPostprocessSettings();
|
||||||
void onConfigurationStoreWritten(bool success);
|
void onConfigurationStoreWritten(bool success);
|
||||||
void onConfigurationStoreRead(bool success);
|
void onConfigurationStoreRead(bool success);
|
||||||
#if ENABLED(POWER_LOSS_RECOVERY)
|
#if ENABLED(POWER_LOSS_RECOVERY)
|
||||||
|
@ -533,6 +533,8 @@ void MarlinSettings::postprocess() {
|
|||||||
|
|
||||||
TERN_(CASELIGHT_USES_BRIGHTNESS, caselight.update_brightness());
|
TERN_(CASELIGHT_USES_BRIGHTNESS, caselight.update_brightness());
|
||||||
|
|
||||||
|
TERN_(EXTENSIBLE_UI, ExtUI::onPostprocessSettings());
|
||||||
|
|
||||||
// Refresh steps_to_mm with the reciprocal of axis_steps_per_mm
|
// Refresh steps_to_mm with the reciprocal of axis_steps_per_mm
|
||||||
// and init stepper.count[], planner.position[] with current_position
|
// and init stepper.count[], planner.position[] with current_position
|
||||||
planner.refresh_positioning();
|
planner.refresh_positioning();
|
||||||
|
Loading…
Reference in New Issue
Block a user