mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Get rid of stupid _backlight_* function names
_remote_backlight_* and _buttonlight_* are cleaned as well Change-Id: I73653752831bbe170c26ba95d3bc04c2e3a5cf30
This commit is contained in:
parent
2a3e1628a5
commit
89ba7e818c
148 changed files with 679 additions and 687 deletions
|
|
@ -135,7 +135,7 @@ void clickwheel_int(void)
|
|||
static int prev_keypost = BUTTON_NONE;
|
||||
static int count = 0;
|
||||
static int fast_mode = 0;
|
||||
static long next_backlight_on = 0;
|
||||
static long nextbacklight_hw_on = 0;
|
||||
|
||||
static unsigned long prev_usec[WHEEL_BASE_SENSITIVITY] = { 0 };
|
||||
static unsigned long delta = 1ul << 24;
|
||||
|
|
@ -166,11 +166,11 @@ void clickwheel_int(void)
|
|||
velocity = 0;
|
||||
}
|
||||
|
||||
if (TIME_AFTER(current_tick, next_backlight_on))
|
||||
if (TIME_AFTER(current_tick, nextbacklight_hw_on))
|
||||
{
|
||||
/* Poke backlight to turn it on or maintain it no more often
|
||||
* than every 1/4 second */
|
||||
next_backlight_on = current_tick + HZ/4;
|
||||
nextbacklight_hw_on = current_tick + HZ/4;
|
||||
backlight_on();
|
||||
#ifdef HAVE_BUTTON_LIGHT
|
||||
buttonlight_on();
|
||||
|
|
@ -209,7 +209,7 @@ void clickwheel_int(void)
|
|||
velocity = v;
|
||||
/* Ensure backlight never gets stuck for an extended period if tick
|
||||
* wrapped such that next poke is very far ahead */
|
||||
next_backlight_on = current_tick - 1;
|
||||
nextbacklight_hw_on = current_tick - 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue