summaryrefslogtreecommitdiffstats
path: root/bootloader/iriver_h1x0.c
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/iriver_h1x0.c')
-rw-r--r--bootloader/iriver_h1x0.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/bootloader/iriver_h1x0.c b/bootloader/iriver_h1x0.c
index d5a3b887a2..7af0e86240 100644
--- a/bootloader/iriver_h1x0.c
+++ b/bootloader/iriver_h1x0.c
@@ -209,25 +209,24 @@ void try_flashboot(void)
if (!firmware_settings.initialized)
return ;
- switch (firmware_settings.bootmethod)
+ switch (firmware_settings.bootmethod)
{
case BOOT_DISK:
return;
case BOOT_ROM:
start_flashed_romimage();
- recovery_mode = true;
break;
case BOOT_RAM:
start_flashed_ramimage();
- recovery_mode = true;
break;
- default:
- recovery_mode = true;
- return;
+ case BOOT_RECOVERY:
+ break;
}
+
+ recovery_mode = true;
}
void failsafe_menu(void)
@@ -451,10 +450,12 @@ void main(void)
/* Power on the hard drive early, to speed up the loading. */
if (!hold_status && !recovery_mode)
+ {
ide_power_enable(true);
- if (!hold_status && (usb_detect() != USB_INSERTED) && !recovery_mode)
- try_flashboot();
+ if (usb_detect() != USB_INSERTED)
+ try_flashboot();
+ }
lcd_init();