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 "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 */

View file

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