don't wake t-echo through the touch button

This commit is contained in:
Thomas Göttgens 2022-05-17 13:03:14 +02:00
parent 959962530b
commit 89f7968ca2

View File

@ -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);