freemyipod r932 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r931‎ | r932 | r933 >
Date:01:17, 6 June 2014
Author:theseven
Status:new
Tags:
Comment:
emCORE: Fix target-specific USB debugger requests (this time for real)
Modified paths:
  • /emcore/trunk/target/ipodclassic/usbtarget.c (modified) (history)
  • /emcore/trunk/target/ipodnano2g/usbtarget.c (modified) (history)
  • /emcore/trunk/usb/usbdebug.c (modified) (history)

Diff [purge]

Index: emcore/trunk/target/ipodclassic/usbtarget.c
@@ -71,6 +71,9 @@
7272 ata_bbt_disable();
7373 buf[0] = 1;
7474 break;
 75+ default:
 76+ buf[0] = 2;
 77+ break;
7578 }
7679 return len;
7780 }
Index: emcore/trunk/target/ipodnano2g/usbtarget.c
@@ -107,6 +107,9 @@
108108 buf[0] = 1;
109109 break;
110110 }
 111+ default:
 112+ buf[0] = 2;
 113+ break;
111114 }
112115 return len;
113116 }
Index: emcore/trunk/usb/usbdebug.c
@@ -695,10 +695,12 @@
696696 break;
697697 #endif
698698 default:
699 - buf[0] = 2;
700699 #ifdef USB_HAVE_TARGET_SPECIFIC_REQUESTS
701700 if (buf[0] >= 0xffff0000)
702701 len = usb_target_handle_request(buf, sizeof(buf), &addr);
 702+ else buf[0] = 2;
 703+#else
 704+ buf[0] = 2;
703705 #endif
704706 break;
705707 }