From 1ec821244afc4f671c0c94519cd3a70b2777bf74 Mon Sep 17 00:00:00 2001 From: Rafaël Carré 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/gigabeat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bootloader/gigabeat.c') diff --git a/bootloader/gigabeat.c b/bootloader/gigabeat.c index 7a634b329c..cfba4bb38d 100644 --- a/bootloader/gigabeat.c +++ b/bootloader/gigabeat.c @@ -181,7 +181,7 @@ void main(void) if(rc) { reset_screen(); - error(EATA, rc); + error(EATA, rc, true); } disk_init(); @@ -189,7 +189,7 @@ void main(void) rc = disk_mount_all(); if (rc<=0) { - error(EDISK,rc); + error(EDISK, rc, true); } printf("Loading firmware"); @@ -202,7 +202,7 @@ void main(void) rc = load_firmware(loadbuffer, BOOTFILE, buffer_size); if(rc < 0) - error(EBOOTFILE, rc); + error(EBOOTFILE, rc, true); storage_close(); system_prepare_fw_start(); -- cgit v1.2.3