diff options
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/battery_bench.c | 7 | ||||
-rw-r--r-- | apps/plugins/mpegplayer/mpeg_settings.c | 5 | ||||
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.c | 5 |
3 files changed, 9 insertions, 8 deletions
diff --git a/apps/plugins/battery_bench.c b/apps/plugins/battery_bench.c index 93876d0807..174a589d8f 100644 --- a/apps/plugins/battery_bench.c +++ b/apps/plugins/battery_bench.c | |||
@@ -359,9 +359,8 @@ static unsigned int charge_state(void) | |||
359 | #endif | 359 | #endif |
360 | 360 | ||
361 | 361 | ||
362 | static void flush_buffer(void* data) | 362 | static void flush_buffer(void) |
363 | { | 363 | { |
364 | (void)data; | ||
365 | int fd; | 364 | int fd; |
366 | unsigned int i; | 365 | unsigned int i; |
367 | 366 | ||
@@ -445,7 +444,7 @@ static void thread(void) | |||
445 | for this to occur because it requires > 16 hours of no disk activity. | 444 | for this to occur because it requires > 16 hours of no disk activity. |
446 | */ | 445 | */ |
447 | if (buf_idx == BUF_ELEMENTS) { | 446 | if (buf_idx == BUF_ELEMENTS) { |
448 | flush_buffer(NULL); | 447 | flush_buffer(); |
449 | } | 448 | } |
450 | 449 | ||
451 | /* sleep some time until next measurement */ | 450 | /* sleep some time until next measurement */ |
@@ -479,7 +478,7 @@ static void thread(void) | |||
479 | /* unregister flush callback and flush to disk */ | 478 | /* unregister flush callback and flush to disk */ |
480 | rb->unregister_storage_idle_func(flush_buffer, true); | 479 | rb->unregister_storage_idle_func(flush_buffer, true); |
481 | #else | 480 | #else |
482 | flush_buffer(NULL); | 481 | flush_buffer(); |
483 | #endif | 482 | #endif |
484 | 483 | ||
485 | /* log end of bench and exit reason */ | 484 | /* log end of bench and exit reason */ |
diff --git a/apps/plugins/mpegplayer/mpeg_settings.c b/apps/plugins/mpegplayer/mpeg_settings.c index bcef4c66bf..b5c9c6bbc8 100644 --- a/apps/plugins/mpegplayer/mpeg_settings.c +++ b/apps/plugins/mpegplayer/mpeg_settings.c | |||
@@ -677,8 +677,9 @@ static uint32_t increment_time(uint32_t val, int32_t amount, uint32_t range) | |||
677 | } | 677 | } |
678 | 678 | ||
679 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | 679 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) |
680 | static void get_start_time_lcd_enable_hook(void *param) | 680 | static void get_start_time_lcd_enable_hook(unsigned short id, void *param) |
681 | { | 681 | { |
682 | (void)id; | ||
682 | (void)param; | 683 | (void)param; |
683 | rb->queue_post(rb->button_queue, LCD_ENABLE_EVENT_0, 0); | 684 | rb->queue_post(rb->button_queue, LCD_ENABLE_EVENT_0, 0); |
684 | } | 685 | } |
@@ -698,7 +699,7 @@ static int get_start_time(uint32_t duration) | |||
698 | mylcd_update(); | 699 | mylcd_update(); |
699 | 700 | ||
700 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | 701 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) |
701 | rb->add_event(LCD_EVENT_ACTIVATION, false, get_start_time_lcd_enable_hook); | 702 | rb->add_event(LCD_EVENT_ACTIVATION, get_start_time_lcd_enable_hook); |
702 | #endif | 703 | #endif |
703 | 704 | ||
704 | draw_slider(0, 100, &rc_bound); | 705 | draw_slider(0, 100, &rc_bound); |
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index 928c48ab11..467c961912 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c | |||
@@ -1026,8 +1026,9 @@ static void fps_init(void) | |||
1026 | 1026 | ||
1027 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | 1027 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) |
1028 | /* So we can refresh the overlay */ | 1028 | /* So we can refresh the overlay */ |
1029 | static void osd_lcd_enable_hook(void* param) | 1029 | static void osd_lcd_enable_hook(unsigned short id, void* param) |
1030 | { | 1030 | { |
1031 | (void)id; | ||
1031 | (void)param; | 1032 | (void)param; |
1032 | rb->queue_post(rb->button_queue, LCD_ENABLE_EVENT_1, 0); | 1033 | rb->queue_post(rb->button_queue, LCD_ENABLE_EVENT_1, 0); |
1033 | } | 1034 | } |
@@ -1043,7 +1044,7 @@ static void osd_backlight_on_video_mode(bool video_on) | |||
1043 | #endif | 1044 | #endif |
1044 | } else { | 1045 | } else { |
1045 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | 1046 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) |
1046 | rb->add_event(LCD_EVENT_ACTIVATION, false, osd_lcd_enable_hook); | 1047 | rb->add_event(LCD_EVENT_ACTIVATION, osd_lcd_enable_hook); |
1047 | #endif | 1048 | #endif |
1048 | /* Revert to user's backlight settings */ | 1049 | /* Revert to user's backlight settings */ |
1049 | backlight_use_settings(); | 1050 | backlight_use_settings(); |