forked from len0rd/rockbox
make sure plugin reset backlight setting before exit. do code polish.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24076 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
3e2aba0c3e
commit
dc010201a5
9 changed files with 73 additions and 71 deletions
|
@ -482,8 +482,6 @@ int plugin_main(void)
|
|||
#endif
|
||||
case(STARFIELD_QUIT):
|
||||
case(SYS_USB_CONNECTED):
|
||||
/* Turn on backlight timeout (revert to settings) */
|
||||
backlight_use_settings(); /* backlight control in lib/helper.c*/
|
||||
return PLUGIN_OK;
|
||||
break;
|
||||
}
|
||||
|
@ -502,6 +500,9 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
|
||||
ret = plugin_main();
|
||||
|
||||
/* Turn on backlight timeout (revert to settings) */
|
||||
backlight_use_settings(); /* backlight control in lib/helper.c*/
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue