summaryrefslogtreecommitdiffstats
path: root/firmware/panic.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-06-04 23:15:52 +0000
committerJens Arnold <amiconn@rockbox.org>2005-06-04 23:15:52 +0000
commit5690f78fb23ec66aeadf5ecf8200b5610b3e59d2 (patch)
tree62bab156602ab905851fbb000c22d48bf2f8f85e /firmware/panic.c
parentc9cc73ec1988dae9e3d1a09347ceac2a4ecc1f67 (diff)
downloadrockbox-5690f78fb23ec66aeadf5ecf8200b5610b3e59d2.tar.gz
rockbox-5690f78fb23ec66aeadf5ecf8200b5610b3e59d2.tar.bz2
rockbox-5690f78fb23ec66aeadf5ecf8200b5610b3e59d2.zip
Multiple choice LED configuration instead of HAVE_LED. Removes erroneous MMC icon display on iriver, and saves some code on Ondio. Removed invert_led() as it is no longer used.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6568 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/panic.c')
-rw-r--r--firmware/panic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index bc46c82824..37a185f990 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -36,7 +36,9 @@ void panicf( const char *fmt, ...)
va_list ap;
#ifndef SIMULATOR
+#if CONFIG_LED == LED_REAL
bool state = false;
+#endif
/* Disable interrupts */
#if CONFIG_CPU == SH7034
@@ -76,7 +78,7 @@ void panicf( const char *fmt, ...)
DEBUGF(panic_buf);
while (1)
{
-#ifndef SIMULATOR
+#if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR)
volatile long i;
led (state);
state = state?false:true;