From 89f7968ca2690fdfbf0abf1bdb1cac18873f09a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Tue, 17 May 2022 13:03:14 +0200 Subject: [PATCH] don't wake t-echo through the touch button --- src/main.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 00a540b51..4c11d096e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -226,10 +226,6 @@ class ButtonThread : public OSThread #ifdef BUTTON_PIN_TOUCH userButtonTouch = OneButton(BUTTON_PIN_TOUCH, true, true); -#ifdef INPUT_PULLUP_SENSE - // Some platforms (nrf52) have a SENSE variant which allows wake from sleep - override what OneButton did - pinMode(BUTTON_PIN_TOUCH, INPUT_PULLUP_SENSE); -#endif userButtonTouch.attachClick(touchPressed); userButtonTouch.attachDuringLongPress(touchPressedLong); userButtonTouch.attachDoubleClick(touchDoublePressed);