From: Oleksij Rempel Date: Tue, 13 Aug 2013 10:12:15 +0000 (+0200) Subject: fix u8 to u16 conversation X-Git-Tag: 1.4.0~11^2~2 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=8f2b1af9c32d71e9380db48ac375e51d74beeefe;p=open-ath9k-htc-firmware.git fix u8 to u16 conversation Signed-off-by: Oleksij Rempel --- diff --git a/target_firmware/magpie_fw_dev/target/rompatch/usb_api_patch.c b/target_firmware/magpie_fw_dev/target/rompatch/usb_api_patch.c index d9a394d..298c41d 100755 --- a/target_firmware/magpie_fw_dev/target/rompatch/usb_api_patch.c +++ b/target_firmware/magpie_fw_dev/target/rompatch/usb_api_patch.c @@ -749,9 +749,9 @@ extern BOOLEAN bGet_descriptor(void); uint16_t ConfigDescriptorPatch[30]; - uint16_t UsbDeviceDescriptorPatch[18]; - #define VENDOR_ID_OFFSET 8 - #define PRODUCT_ID_OFFSET 10 +uint16_t UsbDeviceDescriptorPatch[9]; +#define VENDOR_ID_OFFSET 4 +#define PRODUCT_ID_OFFSET 5 #define EP3_TRANSFER_TYPE_OFFSET 17 #define EP3_INT_INTERVAL 19