diff options
author | JF <jf@codingfield.com> | 2020-08-19 16:04:05 +0200 |
---|---|---|
committer | Gitea <gitea@fake.local> | 2020-08-19 16:04:05 +0200 |
commit | 9906a708c9fcbc13f47bdba0cb8512799a2a3719 (patch) | |
tree | 98ad9be1bc27a4ea1b9d5ce53837c20902da96c9 /src/drivers/Cst816s.cpp | |
parent | 18686ac2cbf6b97dd0250234ce128bd9ad350d6e (diff) | |
parent | 1e1bb1c6b7d7fdf6299c97bc11555b08f034f324 (diff) |
Merge branch 'removeWarnings' of JF/PineTime into develop
Diffstat (limited to 'src/drivers/Cst816s.cpp')
-rw-r--r-- | src/drivers/Cst816s.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/drivers/Cst816s.cpp b/src/drivers/Cst816s.cpp index 60cd402c..6afbf734 100644 --- a/src/drivers/Cst816s.cpp +++ b/src/drivers/Cst816s.cpp @@ -60,9 +60,9 @@ Cst816S::TouchInfos Cst816S::GetTouchInfo() { uint16_t y = (yHigh << 8) | yLow; auto action = touchData[touchEventIndex + (touchStep * i)] >> 6; /* 0 = Down, 1 = Up, 2 = contact*/ - auto finger = touchData[touchIdIndex + (touchStep * i)] >> 4; - auto pressure = touchData[touchXYIndex + (touchStep * i)]; - auto area = touchData[touchMiscIndex + (touchStep * i)] >> 4; + //auto finger = touchData[touchIdIndex + (touchStep * i)] >> 4; + //auto pressure = touchData[touchXYIndex + (touchStep * i)]; + //auto area = touchData[touchMiscIndex + (touchStep * i)] >> 4; info.x = x; info.y = y; @@ -89,7 +89,6 @@ Cst816S::TouchInfos Cst816S::GetTouchInfo() { // case Gestures::LongPress: NRF_LOG_INFO("Gesture : Long press"); break; // default : NRF_LOG_INFO("Unknown"); break; // } - } |