From 37186e3415303371bbdd4f8aaa29dea8c889fedb Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Fri, 24 Sep 2010 11:55:57 +0200 Subject: [PATCH] Fix wrong comment about standarized USB config descriptor attributes --- src/ftdi.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.1