diff options
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; |