diff options
Diffstat (limited to 'apps/plugins/pdbox/pdbox.c')
-rw-r--r-- | apps/plugins/pdbox/pdbox.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/pdbox.c b/apps/plugins/pdbox/pdbox.c index c5aa7aaf74..4fa6978417 100644 --- a/apps/plugins/pdbox/pdbox.c +++ b/apps/plugins/pdbox/pdbox.c | |||
@@ -22,6 +22,8 @@ | |||
22 | #include "plugin.h" | 22 | #include "plugin.h" |
23 | #include "pdbox.h" | 23 | #include "pdbox.h" |
24 | 24 | ||
25 | #include "lib/helper.h" | ||
26 | |||
25 | #include "PDa/src/m_pd.h" | 27 | #include "PDa/src/m_pd.h" |
26 | #include "PDa/src/s_stuff.h" | 28 | #include "PDa/src/s_stuff.h" |
27 | 29 | ||
@@ -245,6 +247,9 @@ enum plugin_status plugin_start(const void* parameter) | |||
245 | /* If having an error creating threads, bail out. */ | 247 | /* If having an error creating threads, bail out. */ |
246 | if(core_thread_id == 0 || gui_thread_id == 0) | 248 | if(core_thread_id == 0 || gui_thread_id == 0) |
247 | return PLUGIN_ERROR; | 249 | return PLUGIN_ERROR; |
250 | |||
251 | /* Make backlight remain on -- making music requires attention. */ | ||
252 | backlight_force_on(); | ||
248 | 253 | ||
249 | /* Main loop. */ | 254 | /* Main loop. */ |
250 | while(!quit) | 255 | while(!quit) |
@@ -255,6 +260,9 @@ enum plugin_status plugin_start(const void* parameter) | |||
255 | /* Sleep to the next time slice. */ | 260 | /* Sleep to the next time slice. */ |
256 | rb->sleep(1); | 261 | rb->sleep(1); |
257 | } | 262 | } |
263 | |||
264 | /* Restore backlight. */ | ||
265 | backlight_use_settings(); | ||
258 | 266 | ||
259 | /* Wait for threads to complete. */ | 267 | /* Wait for threads to complete. */ |
260 | rb->thread_wait(gui_thread_id); | 268 | rb->thread_wait(gui_thread_id); |