mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-16 12:39:52 +00:00
Add code for feature "Disable Touch"
This commit is contained in:
@@ -294,6 +294,7 @@ SetUIView::SetUIView(NavigationView& nav) {
|
||||
checkbox_showsplash.set_value(persistent_memory::config_splash());
|
||||
checkbox_showclock.set_value(!persistent_memory::hide_clock());
|
||||
//checkbox_login.set_value(persistent_memory::config_login());
|
||||
//Add code for touch disabled
|
||||
|
||||
uint32_t backlight_timer = persistent_memory::config_backlight_timer();
|
||||
if (backlight_timer) {
|
||||
|
@@ -109,7 +109,7 @@ void Manager::feed(const Frame& frame) {
|
||||
|
||||
switch(state) {
|
||||
case State::NoTouch:
|
||||
if( touch_stable && touch_pressure ) {
|
||||
if( touch_stable && touch_pressure ) {//Add code for touch disabled
|
||||
if( point_stable() ) {
|
||||
state = State::TouchDetected;
|
||||
touch_started();
|
||||
|
Reference in New Issue
Block a user