[touch] Fix hardware touch diagnostics regression (#1314)

* fix touch screen test in analog input test screen

* remove #if SIMU check for touch test

* remove unneeded trace
This commit is contained in:
Malte Langermann
2021-12-30 11:46:10 +10:00
committed by GitHub
parent 1fa27e89ac
commit 9e285b3cb2
6 changed files with 24 additions and 5 deletions
+6
View File
@@ -821,3 +821,9 @@ bool touchPanelEventOccured()
{
return touchEventOccured;
}
TouchState getInternalTouchState()
{
return internalTouchState;
}
+1
View File
@@ -32,6 +32,7 @@ extern bool touchPanelInit();
struct TouchState touchPanelRead();
bool touchPanelEventOccured();
struct TouchState getInternalTouchState();
#define GT911_TIMEOUT 3 // 3ms
+1
View File
@@ -554,5 +554,6 @@ extern AuxSerialRxFifo auxSerialRxFifo;
// Touch panel driver
bool touchPanelEventOccured();
struct TouchState touchPanelRead();
struct TouchState getInternalTouchState();
#endif // _BOARD_H_
+5
View File
@@ -557,3 +557,8 @@ TouchState touchPanelRead()
internalTouchState.event = TE_NONE;
return ret;
}
TouchState getInternalTouchState()
{
return internalTouchState;
}
+5
View File
@@ -915,4 +915,9 @@ struct TouchState touchPanelRead()
simTouchState.deltaY = 0;
return st;
}
struct TouchState getInternalTouchState()
{
return simTouchState;
}
#endif