diff options
Diffstat (limited to 'apps/plugins/credits.c')
-rw-r--r-- | apps/plugins/credits.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/apps/plugins/credits.c b/apps/plugins/credits.c index 62471c5bc7..0251849c11 100644 --- a/apps/plugins/credits.c +++ b/apps/plugins/credits.c | |||
@@ -23,8 +23,6 @@ | |||
23 | 23 | ||
24 | PLUGIN_HEADER | 24 | PLUGIN_HEADER |
25 | 25 | ||
26 | static const struct plugin_api* rb; | ||
27 | |||
28 | static const char* const credits[] = { | 26 | static const char* const credits[] = { |
29 | #include "credits.raw" /* generated list of names from docs/CREDITS */ | 27 | #include "credits.raw" /* generated list of names from docs/CREDITS */ |
30 | }; | 28 | }; |
@@ -371,13 +369,12 @@ static void roll_credits(void) | |||
371 | 369 | ||
372 | #endif | 370 | #endif |
373 | 371 | ||
374 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) | 372 | enum plugin_status plugin_start(const void* parameter) |
375 | { | 373 | { |
376 | (void)parameter; | 374 | (void)parameter; |
377 | rb = api; | ||
378 | 375 | ||
379 | /* Turn off backlight timeout */ | 376 | /* Turn off backlight timeout */ |
380 | backlight_force_on(rb); /* backlight control in lib/helper.c */ | 377 | backlight_force_on(); /* backlight control in lib/helper.c */ |
381 | 378 | ||
382 | rb->show_logo(); | 379 | rb->show_logo(); |
383 | #ifdef HAVE_LCD_CHARCELLS | 380 | #ifdef HAVE_LCD_CHARCELLS |
@@ -389,7 +386,7 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame | |||
389 | roll_credits(); | 386 | roll_credits(); |
390 | 387 | ||
391 | /* Turn on backlight timeout (revert to settings) */ | 388 | /* Turn on backlight timeout (revert to settings) */ |
392 | backlight_use_settings(rb); /* backlight control in lib/helper.c */ | 389 | backlight_use_settings(); /* backlight control in lib/helper.c */ |
393 | 390 | ||
394 | return PLUGIN_OK; | 391 | return PLUGIN_OK; |
395 | } | 392 | } |