diff options
Diffstat (limited to 'bootloader/iriver_h1x0.c')
-rw-r--r-- | bootloader/iriver_h1x0.c | 17 |
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) | |||
209 | if (!firmware_settings.initialized) | 209 | if (!firmware_settings.initialized) |
210 | return ; | 210 | return ; |
211 | 211 | ||
212 | switch (firmware_settings.bootmethod) | 212 | switch (firmware_settings.bootmethod) |
213 | { | 213 | { |
214 | case BOOT_DISK: | 214 | case BOOT_DISK: |
215 | return; | 215 | return; |
216 | 216 | ||
217 | case BOOT_ROM: | 217 | case BOOT_ROM: |
218 | start_flashed_romimage(); | 218 | start_flashed_romimage(); |
219 | recovery_mode = true; | ||
220 | break; | 219 | break; |
221 | 220 | ||
222 | case BOOT_RAM: | 221 | case BOOT_RAM: |
223 | start_flashed_ramimage(); | 222 | start_flashed_ramimage(); |
224 | recovery_mode = true; | ||
225 | break; | 223 | break; |
226 | 224 | ||
227 | default: | 225 | case BOOT_RECOVERY: |
228 | recovery_mode = true; | 226 | break; |
229 | return; | ||
230 | } | 227 | } |
228 | |||
229 | recovery_mode = true; | ||
231 | } | 230 | } |
232 | 231 | ||
233 | void failsafe_menu(void) | 232 | void failsafe_menu(void) |
@@ -451,10 +450,12 @@ void main(void) | |||
451 | 450 | ||
452 | /* Power on the hard drive early, to speed up the loading. */ | 451 | /* Power on the hard drive early, to speed up the loading. */ |
453 | if (!hold_status && !recovery_mode) | 452 | if (!hold_status && !recovery_mode) |
453 | { | ||
454 | ide_power_enable(true); | 454 | ide_power_enable(true); |
455 | 455 | ||
456 | if (!hold_status && (usb_detect() != USB_INSERTED) && !recovery_mode) | 456 | if (usb_detect() != USB_INSERTED) |
457 | try_flashboot(); | 457 | try_flashboot(); |
458 | } | ||
458 | 459 | ||
459 | lcd_init(); | 460 | lcd_init(); |
460 | 461 | ||