freemyipod r348 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r347‎ | r348 | r349 >
Date:01:27, 20 December 2010
Author:theseven
Status:new
Tags:
Comment:
Fix the remaining red
Modified paths:
  • /embios/trunk/target/ipodclassic/usbtarget.c (modified) (history)

Diff [purge]

Index: embios/trunk/target/ipodclassic/usbtarget.c
@@ -54,8 +54,13 @@
5555 }
5656 case 0xffff0002: // LOWLEVEL DISK ACCESS
5757 {
 58+#ifdef ATA_HAVE_BBT
5859 int rc = ata_rw_sectors_internal((((uint64_t)(buffer[3])) << 32) | buffer[2],
5960 buffer[4], (void*)(buffer[5]), (bool)(buffer[1]));
 61+#else
 62+ int rc = ata_rw_sectors((((uint64_t)(buffer[3])) << 32) | buffer[2],
 63+ buffer[4], (void*)(buffer[5]), (bool)(buffer[1]));
 64+#endif
6065 buffer[0] = 1;
6166 buffer[1] = (uint32_t)rc;
6267 size = 16;