Added ATA debug feature

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1308 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Linus Nielsen Feltzing 2002-07-02 17:49:05 +00:00
parent e140424abc
commit ca3e7663a0

View file

@ -94,7 +94,19 @@ static void usb_slave_mode(bool on)
rc = ata_init();
if(rc)
{
#ifdef ARCHOS_RECORDER
char str[32];
lcd_clear_display();
snprintf(str, 31, "ATA error: %d", rc);
lcd_puts(0, 1, str);
lcd_puts(0, 3, "Press ON to debug");
lcd_update();
while(button_get(true) != BUTTON_ON) {};
dbg_ports();
#endif
panicf("ata: %d",rc);
}
pinfo = disk_init();
if (!pinfo)