Fix REMOTE_CONTEXT failure

IRC user <sazmap> 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
This commit is contained in:
William Wilgus 2019-04-22 16:23:28 -05:00
parent 075108e34a
commit e41a563b6c

View file

@ -585,7 +585,7 @@ static inline void action_code_lookup(action_last_t *last, action_cur_t *cur)
{ {
/* logf("context = %x",context); */ /* logf("context = %x",context); */
#if (BUTTON_REMOTE != 0) #if (BUTTON_REMOTE != 0)
if (has_flag(cur->button, BUTTON_REMOTE)) if ((cur->button & BUTTON_REMOTE) != 0)
{ {
context |= CONTEXT_REMOTE; context |= CONTEXT_REMOTE;
} }