We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
thinkyhead
Learn more about funding links in repositories.
Report abuse
1 parent 3156595 commit 6f0274fCopy full SHA for 6f0274f
Marlin/src/lcd/tft_io/touch_calibration.cpp
@@ -92,6 +92,13 @@ void TouchCalibration::validate_calibration() {
92
bool TouchCalibration::handleTouch(uint16_t x, uint16_t y) {
93
static millis_t next_button_update_ms = 0;
94
const millis_t now = millis();
95
+
96
+ // Avoid registering first touch point as top-left corner when initiating touch calibration since user is touching TFT
97
+ if (next_button_update_ms == 0) {
98
+ next_button_update_ms = now + BUTTON_DELAY_MENU;
99
+ return true;
100
+ }
101
102
if (PENDING(now, next_button_update_ms)) return false;
103
next_button_update_ms = now + BUTTON_DELAY_MENU;
104
0 commit comments