sforkowany z mirror/meshtastic-firmware
don't wake t-echo through the touch button
rodzic
49d8c581bd
commit
6b8f83cd71
|
@ -78,10 +78,6 @@ class ButtonThread : public concurrency::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);
|
||||
wakeOnIrq(BUTTON_PIN_TOUCH, FALLING);
|
||||
#endif
|
||||
|
|
Ładowanie…
Reference in New Issue