mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Demystify plugin would have crashed ...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13928 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e68a2e6c41
commit
9fe6e0214f
1 changed files with 4 additions and 3 deletions
|
@ -52,7 +52,8 @@ const struct button_mapping *plugin_contexts[]
|
|||
remote_directions
|
||||
#endif
|
||||
};
|
||||
|
||||
#define NB_ACTION_CONTEXTS \
|
||||
sizeof(plugin_contexts)/sizeof(struct button_mapping*)
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
struct line_color
|
||||
{
|
||||
|
@ -380,8 +381,8 @@ int plugin_main(void)
|
|||
rb->yield();
|
||||
else
|
||||
rb->sleep(sleep_time);
|
||||
|
||||
action = pluginlib_getaction(rb, TIMEOUT_NOBLOCK, plugin_contexts, 3);
|
||||
action = pluginlib_getaction(rb, TIMEOUT_NOBLOCK,
|
||||
plugin_contexts, NB_ACTION_CONTEXTS);
|
||||
switch(action)
|
||||
{
|
||||
case DEMYSTIFY_QUIT:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue