From 0f4cc33d2686f6cd7d0c0c113412a141d140f3ed Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Wed, 20 Apr 2022 10:30:37 +0100 Subject: [PATCH] touchscreen: Increase report rate to 25fps The touchscreen repeat interval effectively controls the report rate of the touchscreen to the action code. Touch interactions are smoother with a faster refresh rate, but the CPU needs to be fast enough to keep up, or we risk queue overflows. 25fps is the minimum required to appear smooth, and probably all targets will be able to handle the extra CPU load. Change-Id: I96dcc80ea2ce8b915ff5682360c2e719b835388d --- firmware/drivers/button.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index a24c4aa1d8..a68b343629 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -84,7 +84,7 @@ static bool enable_sw_poweroff = true; /* speed repeat finishes at, in centiseconds */ #define REPEAT_INTERVAL_FINISH (5*HZ/100) /* repeat interval for touch events */ -#define REPEAT_INTERVAL_TOUCH (5*HZ/100) +#define REPEAT_INTERVAL_TOUCH (4*HZ/100) static int lastdata = 0; static int button_read(int *data);