mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-07 05:35:02 -05:00
[Fix Red] Ability to control backlight for soft lock action
Change-Id: Ib8948a5c43dbc16707d45f81c192e21bf38215e3
This commit is contained in:
parent
7bbaf74c5c
commit
c8c3de9926
1 changed files with 3 additions and 3 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include "config.h"
|
||||
#if !defined(BOOTLOADER)
|
||||
#include "settings.h"
|
||||
#include "action.h"
|
||||
#endif
|
||||
#include <stdlib.h>
|
||||
#include "cpu.h"
|
||||
|
|
@ -39,7 +40,6 @@
|
|||
#include "backlight.h"
|
||||
#include "lcd.h"
|
||||
#include "screendump.h"
|
||||
#include "action.h"
|
||||
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
#include "lcd-remote.h"
|
||||
|
|
@ -846,9 +846,9 @@ bool is_backlight_on(bool ignore_always_off)
|
|||
int backlight_get_current_timeout(void)
|
||||
{
|
||||
if ((backlight_on_button_hold != 0)
|
||||
#if defined(HAVE_REMOTE_LCD_AS_MAIN) && defined(HAS_REMOTE_BUTTON_HOLD)
|
||||
#if (defined(HAVE_REMOTE_LCD_AS_MAIN) && defined(HAS_REMOTE_BUTTON_HOLD))
|
||||
&& remote_button_hold()
|
||||
#elifdef HAS_BUTTON_HOLD
|
||||
#elif defined(HAS_BUTTON_HOLD)
|
||||
&& button_hold()
|
||||
#else
|
||||
&& is_keys_locked()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue