mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
more CONFIG_LED fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12376 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
eff0dc3e13
commit
c2f05592ee
2 changed files with 5 additions and 4 deletions
|
@ -23,7 +23,7 @@
|
|||
#include "system.h"
|
||||
#include "kernel.h"
|
||||
|
||||
#if CONFIG_LED == LED_REAL
|
||||
#if (defined(CONFIG_LED) && (CONFIG_LED == LED_REAL))
|
||||
|
||||
void led(bool on)
|
||||
{
|
||||
|
@ -37,7 +37,8 @@ void led(bool on)
|
|||
}
|
||||
}
|
||||
|
||||
#elif (CONFIG_LED == LED_VIRTUAL) || defined(HAVE_REMOTE_LCD)
|
||||
#elif (defined(CONFIG_LED) && (CONFIG_LED == LED_VIRTUAL)) \
|
||||
|| defined(HAVE_REMOTE_LCD)
|
||||
|
||||
static bool current;
|
||||
static long last_on; /* timestamp of switching off */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue