Skip to content

Commit

Permalink
Re-calibrate touch after EEPROM reset, if needed (MarlinFirmware#20934)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhapsodyv authored and thinkyhead committed Apr 29, 2021
1 parent 129e915 commit 0d7c02d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Marlin/src/lcd/marlinui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1652,7 +1652,13 @@ void MarlinUI::update() {
#endif // SDSUPPORT

#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

#if ENABLED(EEPROM_SETTINGS)
Expand Down

0 comments on commit 0d7c02d

Please sign in to comment.