From 0c1cae929512565296940bf6322087a73b2cecd0 Mon Sep 17 00:00:00 2001 From: pete-cs Date: Wed, 19 Jun 2013 20:29:44 +0000 Subject: [PATCH] fix endianness in device descriptor git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1611 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/USBDevice.py | 6 +++--- client/USBFtdi.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/client/USBDevice.py b/client/USBDevice.py index 29450b4..5c28fbb 100644 --- a/client/USBDevice.py +++ b/client/USBDevice.py @@ -105,12 +105,12 @@ class USBDevice: self.device_subclass, self.protocol_rel_num, self.max_packet_size_ep0, - (self.vendor_id >> 8) & 0xff, self.vendor_id & 0xff, - (self.product_id >> 8) & 0xff, + (self.vendor_id >> 8) & 0xff, self.product_id & 0xff, - (self.device_rev >> 8) & 0xff, + (self.product_id >> 8) & 0xff, self.device_rev & 0xff, + (self.device_rev >> 8) & 0xff, self.manufacturer_string_id, self.product_string_id, self.serial_number_string_id, diff --git a/client/USBFtdi.py b/client/USBFtdi.py index 32f3204..0302ac1 100644 --- a/client/USBFtdi.py +++ b/client/USBFtdi.py @@ -181,8 +181,8 @@ class USBFtdiDevice(USBDevice): 0, # device subclass 0, # protocol release number 64, # max packet size for endpoint 0 - 0x0304, # vendor id: FTDI - 0x0160, # product id: FT232 USB-Serial (UART) IC + 0x0403, # vendor id: FTDI + 0x6001, # product id: FT232 USB-Serial (UART) IC 0x0001, # device revision "GoodFET", # manufacturer string "FTDI Emulator", # product string -- 2.20.1