T-Echo touch button no longer requires "wake on tap or motion" (#3745)

This commit is contained in:
todd-herbert 2024-04-30 01:54:57 +12:00 committed by GitHub
parent 18e69a0906
commit 21311bbeda
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 11 deletions

View File

@ -196,15 +196,13 @@ int32_t ButtonThread::runOnce()
#ifdef BUTTON_PIN_TOUCH #ifdef BUTTON_PIN_TOUCH
case BUTTON_EVENT_TOUCH_LONG_PRESSED: { case BUTTON_EVENT_TOUCH_LONG_PRESSED: {
LOG_BUTTON("Touch press!\n"); LOG_BUTTON("Touch press!\n");
if (config.display.wake_on_tap_or_motion) { if (screen) {
if (screen) { // Wake if asleep
// Wake if asleep if (powerFSM.getState() == &stateDARK)
if (powerFSM.getState() == &stateDARK) powerFSM.trigger(EVENT_PRESS);
powerFSM.trigger(EVENT_PRESS);
// Update display (legacy behaviour) // Update display (legacy behaviour)
screen->forceDisplay(); screen->forceDisplay();
}
} }
break; break;
} }

View File

@ -352,9 +352,6 @@ void NodeDB::installDefaultModuleConfig()
moduleConfig.external_notification.alert_message = true; moduleConfig.external_notification.alert_message = true;
moduleConfig.external_notification.output_ms = 100; moduleConfig.external_notification.output_ms = 100;
moduleConfig.external_notification.active = true; moduleConfig.external_notification.active = true;
#endif
#ifdef TTGO_T_ECHO
config.display.wake_on_tap_or_motion = true; // Enable touch button for screen-on / refresh
#endif #endif
moduleConfig.has_canned_message = true; moduleConfig.has_canned_message = true;