summaryrefslogtreecommitdiff
path: root/firmware/panic.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-02-18 01:10:42 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-02-18 01:10:42 +0000
commitc2f05592ee1ba8399b64b5f63669c0eaa8cb8e0e (patch)
tree839dc8e03702a3413ccc2860bd9d801e3fe902d9 /firmware/panic.c
parenteff0dc3e13063a8d63710dfb8e48abf960bc0a33 (diff)
more CONFIG_LED fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12376 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/panic.c')
-rw-r--r--firmware/panic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index aaac9ba87b..8d6b0e5bb5 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -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;