diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 19:42:32 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 19:42:32 -0400 |
commit | e49c1af5709bd24ea9c088c6d1676372bd7cc780 (patch) | |
tree | ccfb40404fad8503292e1baa4fdd9aef8d1d78eb /apps/plugins/test_disk.c | |
parent | 9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3 (diff) | |
download | rockbox-e49c1af570.tar.gz rockbox-e49c1af570.zip |
plugins: HAVE_BACKLIGHT in the test plugins
Change-Id: I97d17805ac7d37f10da6a29684102db97448e653
Diffstat (limited to 'apps/plugins/test_disk.c')
-rw-r--r-- | apps/plugins/test_disk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c index 339bcb8020..b689ba672e 100644 --- a/apps/plugins/test_disk.c +++ b/apps/plugins/test_disk.c @@ -467,8 +467,10 @@ enum plugin_status plugin_start(const void* parameter) rb->srand(*rb->current_tick); +#ifdef HAVE_BACKLIGHT /* Turn off backlight timeout */ backlight_ignore_timeout(); +#endif while(!quit) { @@ -487,8 +489,9 @@ enum plugin_status plugin_start(const void* parameter) } /* Turn on backlight timeout (revert to settings) */ +#ifdef HAVE_BACKLIGHT backlight_use_settings(); - +#endif rb->rmdir(testbasedir); return PLUGIN_OK; |