1
0
Fork 0
forked from len0rd/rockbox

Gracefully shutdown unless firmware is found.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10879 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Miika Pekkarinen 2006-09-04 16:06:11 +00:00
parent 8c834bd57c
commit 973ee5d8d9
2 changed files with 18 additions and 7 deletions

View file

@ -508,10 +508,20 @@ void main(void)
eeprom_settings_store();
#endif
if(i == 0)
if (i == 0)
start_firmware();
start_iriver_fw();
if (detect_flashed_rockbox())
{
printf("No firmware found on disk");
printf("Powering off...");
lcd_update();
ata_sleep();
sleep(HZ*4);
power_off();
}
else
start_iriver_fw();
#endif /* IAUDIO_X5 */
}