more CONFIG_LED fixes

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12376 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-02-18 01:10:42 +00:00
parent eff0dc3e13
commit c2f05592ee
2 changed files with 5 additions and 4 deletions

View file

@ -23,7 +23,7 @@
#include "system.h" #include "system.h"
#include "kernel.h" #include "kernel.h"
#if CONFIG_LED == LED_REAL #if (defined(CONFIG_LED) && (CONFIG_LED == LED_REAL))
void led(bool on) 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 bool current;
static long last_on; /* timestamp of switching off */ static long last_on; /* timestamp of switching off */

View file

@ -39,7 +39,7 @@ void panicf( const char *fmt, ...)
va_list ap; va_list ap;
#ifndef SIMULATOR #ifndef SIMULATOR
#if CONFIG_LED == LED_REAL #if (defined(CONFIG_LED) && (CONFIG_LED == LED_REAL))
bool state = false; bool state = false;
int i = 0; int i = 0;
#endif #endif
@ -90,7 +90,7 @@ void panicf( const char *fmt, ...)
while (1) while (1)
{ {
#ifndef SIMULATOR #ifndef SIMULATOR
#if CONFIG_LED == LED_REAL #if (defined(CONFIG_LED) && (CONFIG_LED == LED_REAL))
if (--i <= 0) if (--i <= 0)
{ {
state = !state; state = !state;