fix secondary button behavior and update trunk

pull/6354/head
Thomas Göttgens 2025-03-28 23:52:25 +01:00
rodzic 630990fccb
commit 49d8767d3d
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -12,7 +12,7 @@ lint:
- trufflehog@3.88.18
- yamllint@1.37.0
- bandit@1.8.3
- checkov@3.2.392
- checkov@3.2.394
- terrascan@1.19.9
- trivy@0.60.0
- taplo@0.9.3

Wyświetl plik

@ -82,7 +82,11 @@ ButtonThread::ButtonThread() : OSThread("Button")
#endif
#ifdef BUTTON_PIN_ALT
userButtonAlt = OneButton(BUTTON_PIN_ALT, true, true);
#if defined(ELECROW_ThinkNode_M2)
this->userButtonAlt = OneButton(BUTTON_PIN_ALT, false, false);
#else
this->userButtonAlt = OneButton(BUTTON_PIN_ALT, true, true);
#endif
#ifdef INPUT_PULLUP_SENSE
// Some platforms (nrf52) have a SENSE variant which allows wake from sleep - override what OneButton did
pinMode(BUTTON_PIN_ALT, INPUT_PULLUP_SENSE);