From 1ec821244afc4f671c0c94519cd3a70b2777bf74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Wed, 23 Jun 2010 05:08:36 +0000 Subject: Sansa AMS bootloader: enter USB mode only when needed - If an error happens when reading partitions / rockbox.sansa - If the select button was pressed add an argument to error() to not power off, when we're going to enter USB mode to try to fix the problem, but display the error message anyway for debugging purpose git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27075 a1c6a512-1295-4272-9138-f99709370657 --- bootloader/creativezvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bootloader/creativezvm.c') diff --git a/bootloader/creativezvm.c b/bootloader/creativezvm.c index 73968c3..7dcbac7 100644 --- a/bootloader/creativezvm.c +++ b/bootloader/creativezvm.c @@ -96,7 +96,7 @@ void main(void) ret = disk_mount_all(); if (ret <= 0) - error(EDISK, ret); + error(EDISK, ret, true); printf("Loading Rockbox firmware..."); @@ -105,7 +105,7 @@ void main(void) ret = load_firmware(loadbuffer, BOOTFILE, buffer_size); if(ret < 0) - error(EBOOTFILE, ret); + error(EBOOTFILE, ret, true); else if(ret == EOK) { -- cgit v1.1