summaryrefslogtreecommitdiffstats
path: root/firmware/panic.c
diff options
context:
space:
mode:
authorRob Purchase <shotofadds@rockbox.org>2008-05-31 11:30:24 +0000
committerRob Purchase <shotofadds@rockbox.org>2008-05-31 11:30:24 +0000
commit3f7f5d743181b6fb24fd7cfddced0a76951268c6 (patch)
treec4ebdf7544b750ad3963c0ab11d44d9d876ce314 /firmware/panic.c
parentd701d403808608d92e58574c76ec1b27f7adad84 (diff)
downloadrockbox-3f7f5d743181b6fb24fd7cfddced0a76951268c6.tar.gz
rockbox-3f7f5d743181b6fb24fd7cfddced0a76951268c6.tar.bz2
rockbox-3f7f5d743181b6fb24fd7cfddced0a76951268c6.zip
D2: Stop panic screen from crashing instantly (seems this has been broken for a while).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17670 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/panic.c')
-rw-r--r--firmware/panic.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/panic.c b/firmware/panic.c
index dca511473c..fbb6afc577 100644
--- a/firmware/panic.c
+++ b/firmware/panic.c
@@ -111,6 +111,8 @@ void panicf( const char *fmt, ...)
if ((GPIO_READ & 0x0c000000) == 0x08000000) /* check for ON button and !hold */
#elif defined(IAUDIO_M3)
if ((GPIO1_READ & 0x202) == 0x200) /* check for ON button and !hold */
+#elif defined(COWON_D2)
+ if (GPIOA & 0x10) /* check for power button */
#elif CONFIG_CPU == SH7034
#if CONFIG_KEYPAD == PLAYER_PAD
if (!(PADRL & 0x20))