Re-calibrate touch after EEPROM reset, if needed (#20934)

This commit is contained in:
Victor Oliveira 2021-02-04 18:31:46 -03:00 committed by GitHub
parent 68299c6a5e
commit d58bbd5da1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1652,7 +1652,13 @@ void MarlinUI::update() {
#endif // SDSUPPORT #endif // SDSUPPORT
#if HAS_LCD_MENU #if HAS_LCD_MENU
void MarlinUI::reset_settings() { settings.reset(); completion_feedback(); } void MarlinUI::reset_settings() {
settings.reset();
completion_feedback();
#if ENABLED(TOUCH_SCREEN_CALIBRATION)
if (touch_calibration.need_calibration()) ui.goto_screen(touch_screen_calibration);
#endif
}
#endif #endif
#if ENABLED(EEPROM_SETTINGS) #if ENABLED(EEPROM_SETTINGS)