From e41a563b6cda71b8c973e884f47140087ebcd5ff Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 22 Apr 2019 16:23:28 -0500 Subject: [PATCH] Fix REMOTE_CONTEXT failure IRC user brought an error in the action system to my attention the REMOTE_CONTEXT flag should be added if any remote button is pressed Change-Id: Ie3aab97cf835eab108d4b2bdcd8464fcd649da42 --- apps/action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/action.c b/apps/action.c index 9b665d22a9..f92b84d105 100644 --- a/apps/action.c +++ b/apps/action.c @@ -585,7 +585,7 @@ static inline void action_code_lookup(action_last_t *last, action_cur_t *cur) { /* logf("context = %x",context); */ #if (BUTTON_REMOTE != 0) - if (has_flag(cur->button, BUTTON_REMOTE)) + if ((cur->button & BUTTON_REMOTE) != 0) { context |= CONTEXT_REMOTE; }