Bring the iPod Nano 2G shutdown FTL panics back.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23126 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sparmann 2009-10-12 08:54:51 +00:00
parent 461903d80e
commit 6b17295926
2 changed files with 16 additions and 3 deletions

View file

@ -102,7 +102,9 @@ long nand_last_disk_activity(void)
int nand_flush(void)
{
last_disk_activity = current_tick;
return ftl_sync();
int rc = ftl_sync();
if (rc != 0) panicf("Failed to unmount flash: %X", rc);
return rc;
}
#endif