diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-06-04 23:15:52 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-04 23:15:52 +0000 |
commit | 5690f78fb23ec66aeadf5ecf8200b5610b3e59d2 (patch) | |
tree | 62bab156602ab905851fbb000c22d48bf2f8f85e /firmware/panic.c | |
parent | c9cc73ec1988dae9e3d1a09347ceac2a4ecc1f67 (diff) | |
download | rockbox-5690f78fb23ec66aeadf5ecf8200b5610b3e59d2.tar.gz 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.c | 4 |
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, ...) | |||
36 | va_list ap; | 36 | va_list ap; |
37 | 37 | ||
38 | #ifndef SIMULATOR | 38 | #ifndef SIMULATOR |
39 | #if CONFIG_LED == LED_REAL | ||
39 | bool state = false; | 40 | bool state = false; |
41 | #endif | ||
40 | 42 | ||
41 | /* Disable interrupts */ | 43 | /* Disable interrupts */ |
42 | #if CONFIG_CPU == SH7034 | 44 | #if CONFIG_CPU == SH7034 |
@@ -76,7 +78,7 @@ void panicf( const char *fmt, ...) | |||
76 | DEBUGF(panic_buf); | 78 | DEBUGF(panic_buf); |
77 | while (1) | 79 | while (1) |
78 | { | 80 | { |
79 | #ifndef SIMULATOR | 81 | #if (CONFIG_LED == LED_REAL) && !defined(SIMULATOR) |
80 | volatile long i; | 82 | volatile long i; |
81 | led (state); | 83 | led (state); |
82 | state = state?false:true; | 84 | state = state?false:true; |