summaryrefslogtreecommitdiffstats
path: root/apps/plugins/test_disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/test_disk.c')
-rw-r--r--apps/plugins/test_disk.c5
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;