Rotary Encoder Update - play nice with Onebutton and small bugfix - also switches screen on when any input is processed by the broker

This commit is contained in:
Thomas Göttgens
2022-03-21 15:16:25 +01:00
parent d81c1c08ee
commit aca95248ee
6 changed files with 24 additions and 5 deletions

View File

@@ -295,7 +295,11 @@ class ButtonThread : public OSThread
static void userButtonPressed()
{
// DEBUG_MSG("press!\n");
powerFSM.trigger(EVENT_PRESS);
#ifdef BUTTON_PIN
if ((BUTTON_PIN != radioConfig.preferences.rotary1_pin_press) || !radioConfig.preferences.canned_message_plugin_enabled) {
powerFSM.trigger(EVENT_PRESS);
}
#endif
}
static void userButtonPressedLong()
{