summaryrefslogtreecommitdiffstats
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
authorMichael Sparmann <theseven@rockbox.org>2009-10-21 15:28:11 +0000
committerMichael Sparmann <theseven@rockbox.org>2009-10-21 15:28:11 +0000
commit0c89c0ef7cd2439fe74ef57ac408733aef8fd313 (patch)
treec529e5e2327e44eac990e06e4056936919cbdd30 /firmware/powermgmt.c
parent3ddbe63ff50dbf882e7c1bd4a2b23bdf8713765e (diff)
downloadrockbox-0c89c0ef7cd2439fe74ef57ac408733aef8fd313.tar.gz
rockbox-0c89c0ef7cd2439fe74ef57ac408733aef8fd313.tar.bz2
rockbox-0c89c0ef7cd2439fe74ef57ac408733aef8fd313.zip
Fix another bunch of iPod Nano 2G FTL bugs. It seems to work fine for me now, but this doesn't necessarily mean that it's bug-free.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23307 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index e756bac3c2..041fed0361 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -806,7 +806,12 @@ void sys_poweroff(void)
if (audio_status() & AUDIO_STATUS_RECORD)
shutdown_timeout += HZ*8;
#endif
+#ifdef IPOD_NANO2G
+ /* The FTL alone may take half a minute to shut down cleanly. */
+ shutdown_timeout += HZ*60;
+#else
shutdown_timeout += HZ*20;
+#endif
}
queue_broadcast(SYS_POWEROFF, 0);