Sansa AMS bootloader: enter USB mode only when needed
authorfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Wed, 23 Jun 2010 05:08:36 +0000 (05:08 +0000)
committerfunman <funman@a1c6a512-1295-4272-9138-f99709370657>
Wed, 23 Jun 2010 05:08:36 +0000 (05:08 +0000)
commit135d68595eb31986b1c72b348998ae48fbd7cc77
tree748eead72f705c1e3a91120dc890be49617239c9
parentb718fab11c3a73041f91eaf4811e466b59f400b7
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
12 files changed:
bootloader/common.c
bootloader/common.h
bootloader/creativezvm.c
bootloader/gigabeat-s.c
bootloader/gigabeat.c
bootloader/main-e200r-installer.c
bootloader/main-pp.c
bootloader/mini2440.c
bootloader/mrobe500.c
bootloader/ondavx747.c
bootloader/sansa_as3525.c
bootloader/telechips.c