summaryrefslogtreecommitdiffstats
path: root/apps/action.c
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2019-04-22 16:23:28 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2019-04-22 16:23:28 -0500
commite41a563b6cda71b8c973e884f47140087ebcd5ff (patch)
tree4742eb84cf79f470579d6a69a96f0bb2c4e3a1ac /apps/action.c
parent075108e34a69dec206603598738c2828b6bf7ff6 (diff)
downloadrockbox-e41a563b6cda71b8c973e884f47140087ebcd5ff.tar.gz
rockbox-e41a563b6cda71b8c973e884f47140087ebcd5ff.tar.bz2
rockbox-e41a563b6cda71b8c973e884f47140087ebcd5ff.zip
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
Diffstat (limited to 'apps/action.c')
-rw-r--r--apps/action.c2
1 files changed, 1 insertions, 1 deletions
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;
}