mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
iriver_flash: do not let the backlight timeout while running
I discovered it was doing this on the H300 during longer operations and I freaked out at first. This disables this feature until the program is finished so as to not give anyone else an unnecessary fright while using it. It will also cut down on frivilous reports. Change-Id: I0db406912c7f71835576203a540aba8910afa849
This commit is contained in:
parent
be1be797b2
commit
33d42c20de
1 changed files with 7 additions and 0 deletions
|
@ -22,6 +22,7 @@
|
|||
*
|
||||
****************************************************************************/
|
||||
#include "plugin.h"
|
||||
#include "lib/helper.h"
|
||||
|
||||
/*
|
||||
* Flash commands may rely on null pointer dereferences to work correctly.
|
||||
|
@ -849,9 +850,15 @@ enum plugin_status plugin_start(const void* parameter)
|
|||
/* setup LCD font */
|
||||
rb->lcd_setfont(FONT_SYSFIXED);
|
||||
|
||||
/* don't let the backlight turn off or it might scare people */
|
||||
backlight_ignore_timeout();
|
||||
|
||||
/* run the main entry function */
|
||||
iriver_flash(parameter);
|
||||
|
||||
/* restore the original backlight settings */
|
||||
backlight_use_settings();
|
||||
|
||||
/* restore LCD font */
|
||||
rb->lcd_setfont(FONT_UI);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue