void ScrStartup_OnDeactivate() { if (model.touched()){ touch.setStabilityThreshold(5); // require extra stable reading calibrateTouchScreen(); } touch.setStabilityThreshold(); // reset to default }
uint32_t UI::showStartupPage() { // Check if touch screen has been calibrated if (!eGuiSettings.loadTouchCalib()) { // could not load valid settings from flash memory calibrateTouchScreen(); } uiController.beginStartup(); return 0; }