Add code for feature "Disable Touch"

This commit is contained in:
Žiga Deisinger
2022-01-26 21:52:08 +01:00
parent 96879d3664
commit 4a0d42ed34
5 changed files with 22 additions and 14 deletions

View File

@@ -109,7 +109,7 @@ void Manager::feed(const Frame& frame) {
switch(state) {
case State::NoTouch:
if( touch_stable && touch_pressure ) {//Add code for touch disabled
if( touch_stable && touch_pressure && persistent_memory::enable_touchscreen()) {
if( point_stable() ) {
state = State::TouchDetected;
touch_started();