From: Thomas Jarosch Date: Fri, 24 Sep 2010 09:55:57 +0000 (+0200) Subject: Fix wrong comment about standarized USB config descriptor attributes X-Git-Tag: v1.0rc1~133^2~47 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=37186e3415303371bbdd4f8aaa29dea8c889fedb Fix wrong comment about standarized USB config descriptor attributes --- diff --git a/src/ftdi.c b/src/ftdi.c index 8f9d0c9..ac0b9d1 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2375,7 +2375,7 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi) // Bit 7: always 1 // Bit 6: 1 if this device is self powered, 0 if bus powered // Bit 5: 1 if this device uses remote wakeup - // Bit 4: 1 if this device is battery powered + // Bit 4-0: reserved - 0 j = 0x80; if (eeprom->self_powered == 1) j |= 0x40; @@ -2450,7 +2450,7 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi) output[i & k] = 0x00, i++; } output[0x11] = product_size*2 + 2; - + // Addr 12: Offset of the serial string + 0x80, calculated later // Addr 13: Length of serial string output[0x12] = i | 0x80; // calculate offset