forked from len0rd/rockbox
plugins HAVE_BACKLIGHT helper remove ifdefs in favor of dummy functions
lessen the ifdef hell Change-Id: I52f830284e4599f3fc3a75c27dda27058b8de1a3
This commit is contained in:
parent
3745c813f9
commit
97a82ee3ec
38 changed files with 140 additions and 178 deletions
|
@ -574,9 +574,8 @@ static void display_helpfile(void)
|
|||
|
||||
static void led_resistance_calc(void)
|
||||
{
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_ignore_timeout();
|
||||
#endif
|
||||
|
||||
int voltage_menu_selection, button_press, j, k, l, foreward_current = 0;
|
||||
int fwd_current_selection = 0;
|
||||
bool quit = false;
|
||||
|
@ -769,9 +768,8 @@ static void led_resistance_calc(void)
|
|||
default:
|
||||
quit = true;
|
||||
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_use_settings();
|
||||
#endif
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -784,9 +782,8 @@ static void led_resistance_calc(void)
|
|||
|
||||
static void resistance_to_color(void)
|
||||
{
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_ignore_timeout();
|
||||
#endif
|
||||
|
||||
int menu_selection;
|
||||
int menu_selection_tol;
|
||||
int button_press;
|
||||
|
@ -910,9 +907,9 @@ static void resistance_to_color(void)
|
|||
break;
|
||||
default:
|
||||
quit = true;
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
|
||||
backlight_use_settings();
|
||||
#endif
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -924,9 +921,8 @@ static void resistance_to_color(void)
|
|||
|
||||
static void color_to_resistance(void)
|
||||
{
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_ignore_timeout();
|
||||
#endif
|
||||
|
||||
bool quit = false;
|
||||
int button_input = 0;
|
||||
|
||||
|
@ -995,9 +991,7 @@ static void color_to_resistance(void)
|
|||
case PLA_SELECT:
|
||||
default:
|
||||
quit = true;
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_use_settings();
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue