From 501191430300c10eed13947c8f1bb39b107e2369 Mon Sep 17 00:00:00 2001 From: Richard Li Date: Wed, 4 Oct 2023 16:31:50 +0800 Subject: [PATCH] Workaround interrupt happens when touch panel is idle. --- radio/src/targets/pl18/tp_cst340.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/targets/pl18/tp_cst340.cpp b/radio/src/targets/pl18/tp_cst340.cpp index 07a7ae5b575..22ef35a7f5d 100644 --- a/radio/src/targets/pl18/tp_cst340.cpp +++ b/radio/src/targets/pl18/tp_cst340.cpp @@ -486,7 +486,7 @@ void handleTouch() bool touchPanelEventOccured() { - return touchEventOccured; + return touchEventOccured && tc->detectTouch(); } TouchState touchPanelRead()