Skip to content

Commit 293fbdb

Browse files
committed
input: adjust touch delay to prevent multiple touches within 250ms
1 parent a5c9eab commit 293fbdb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main/input/touchscreen.inc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ static void touchscreen_task(void* ignored)
6565
uint16_t touch_strength[1];
6666
uint8_t touch_cnt = 10;
6767

68-
// FIXME: don't allow multiple touches within 300 ms?
6968
// FIXME: this doesn't currently work with Display -> Flip Orientation feature
7069
// but it could by changing the touch_y[0] > 200 logic with < 40 and inverting prev with next and viceversa
7170
while (!shutdown_requested) {
@@ -85,7 +84,7 @@ static void touchscreen_task(void* ignored)
8584
} else {
8685
continue;
8786
}
88-
vTaskDelay(100 / portTICK_PERIOD_MS);
87+
vTaskDelay(250 / portTICK_PERIOD_MS);
8988
}
9089
}
9190
}

0 commit comments

Comments
 (0)