diff options
author | James Buren <braewoods+rb@braewoods.net> | 2020-11-14 18:30:02 +0000 |
---|---|---|
committer | James Buren <braewoods+rb@braewoods.net> | 2020-11-14 18:47:12 +0000 |
commit | 33d42c20de9a66cbfec8b213d19b454794d63900 (patch) | |
tree | 623c6aa256b624794320c5e260ca1bc7cfba199e /apps/plugins | |
parent | be1be797b24acb5d78ad55502dd9bd7306482c0d (diff) | |
download | rockbox-33d42c20de9a66cbfec8b213d19b454794d63900.tar.gz rockbox-33d42c20de9a66cbfec8b213d19b454794d63900.zip |
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
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/iriver_flash.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/plugins/iriver_flash.c b/apps/plugins/iriver_flash.c index e5da55c7ed..748945c4c0 100644 --- a/apps/plugins/iriver_flash.c +++ b/apps/plugins/iriver_flash.c | |||
@@ -22,6 +22,7 @@ | |||
22 | * | 22 | * |
23 | ****************************************************************************/ | 23 | ****************************************************************************/ |
24 | #include "plugin.h" | 24 | #include "plugin.h" |
25 | #include "lib/helper.h" | ||
25 | 26 | ||
26 | /* | 27 | /* |
27 | * Flash commands may rely on null pointer dereferences to work correctly. | 28 | * Flash commands may rely on null pointer dereferences to work correctly. |
@@ -849,9 +850,15 @@ enum plugin_status plugin_start(const void* parameter) | |||
849 | /* setup LCD font */ | 850 | /* setup LCD font */ |
850 | rb->lcd_setfont(FONT_SYSFIXED); | 851 | rb->lcd_setfont(FONT_SYSFIXED); |
851 | 852 | ||
853 | /* don't let the backlight turn off or it might scare people */ | ||
854 | backlight_ignore_timeout(); | ||
855 | |||
852 | /* run the main entry function */ | 856 | /* run the main entry function */ |
853 | iriver_flash(parameter); | 857 | iriver_flash(parameter); |
854 | 858 | ||
859 | /* restore the original backlight settings */ | ||
860 | backlight_use_settings(); | ||
861 | |||
855 | /* restore LCD font */ | 862 | /* restore LCD font */ |
856 | rb->lcd_setfont(FONT_UI); | 863 | rb->lcd_setfont(FONT_UI); |
857 | 864 | ||