diff options
author | William Wilgus <me.theuser@yahoo.com> | 2019-04-22 16:23:28 -0500 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2019-04-22 16:23:28 -0500 |
commit | e41a563b6cda71b8c973e884f47140087ebcd5ff (patch) | |
tree | 4742eb84cf79f470579d6a69a96f0bb2c4e3a1ac | |
parent | 075108e34a69dec206603598738c2828b6bf7ff6 (diff) | |
download | rockbox-e41a563b6cda71b8c973e884f47140087ebcd5ff.tar.gz 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
-rw-r--r-- | apps/action.c | 2 |
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) | |||
585 | { | 585 | { |
586 | /* logf("context = %x",context); */ | 586 | /* logf("context = %x",context); */ |
587 | #if (BUTTON_REMOTE != 0) | 587 | #if (BUTTON_REMOTE != 0) |
588 | if (has_flag(cur->button, BUTTON_REMOTE)) | 588 | if ((cur->button & BUTTON_REMOTE) != 0) |
589 | { | 589 | { |
590 | context |= CONTEXT_REMOTE; | 590 | context |= CONTEXT_REMOTE; |
591 | } | 591 | } |