1
0
Fork 0
forked from len0rd/rockbox

plugins: HAVE_BACKLIGHT in the test plugins

Change-Id: I97d17805ac7d37f10da6a29684102db97448e653
This commit is contained in:
Solomon Peachy 2020-07-24 19:42:32 -04:00
parent 9be5bc4cf0
commit e49c1af570
5 changed files with 22 additions and 8 deletions

View file

@ -401,8 +401,9 @@ enum plugin_status plugin_start(const void* parameter)
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
cpu_freq = *rb->cpu_frequency; /* remember CPU frequency */
#endif
#ifdef HAVE_BACKLIGHT
backlight_ignore_timeout();
#endif
time_main_update();
rb->sleep(HZ);
#if defined(HAVE_LCD_COLOR) && (MEMORYSIZE > 2)
@ -423,8 +424,9 @@ enum plugin_status plugin_start(const void* parameter)
(cpu_freq + 500000) / 1000000);
log_text(str);
#endif
#ifdef HAVE_BACKLIGHT
backlight_use_settings();
#endif
/* wait until user closes plugin */
plugin_quit();