Compare commits
2 Commits
rei/develo
...
debug-touc
Author | SHA1 | Date | |
---|---|---|---|
|
9256f24663 | ||
|
cbcae2ec54 |
@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(pinetime VERSION 1.7.0 LANGUAGES C CXX ASM)
|
||||
project(pinetime VERSION 1.7.99 LANGUAGES C CXX ASM)
|
||||
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
|
@ -32,6 +32,7 @@ bool Cst816S::Init() {
|
||||
twiMaster.Read(twiAddress, 0xa7, &dummy, 1);
|
||||
vTaskDelay(5);
|
||||
|
||||
|
||||
static constexpr uint8_t maxRetries = 3;
|
||||
bool isDeviceOk;
|
||||
uint8_t retries = 0;
|
||||
@ -39,10 +40,11 @@ bool Cst816S::Init() {
|
||||
isDeviceOk = CheckDeviceIds();
|
||||
retries++;
|
||||
} while (!isDeviceOk && retries < maxRetries);
|
||||
|
||||
/*
|
||||
if (!isDeviceOk) {
|
||||
return false;
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
[2] EnConLR - Continuous operation can slide around
|
||||
@ -86,6 +88,7 @@ Cst816S::TouchInfos Cst816S::GetTouchInfo() {
|
||||
Gestures gesture = static_cast<Gestures>(touchData[gestureIndex]);
|
||||
|
||||
// Validity check
|
||||
/*
|
||||
if(x >= maxX || y >= maxY ||
|
||||
(gesture != Gestures::None &&
|
||||
gesture != Gestures::SlideDown &&
|
||||
@ -98,6 +101,7 @@ Cst816S::TouchInfos Cst816S::GetTouchInfo() {
|
||||
info.isValid = false;
|
||||
return info;
|
||||
}
|
||||
*/
|
||||
|
||||
info.x = x;
|
||||
info.y = y;
|
||||
|
Loading…
Reference in New Issue
Block a user