Added debugging code to ata_WaitTO().