X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=src%2Fftdi.c;h=c62ede7a49e5e911a993c04c824959af10494b4a;hb=6335545d29051b1de8d2d482c25a3c1e2e4ff62c;hp=b67f950603fc0ebd2d0cbd7db277cbe0328ee421;hpb=e30da501892deee3ebb2d1c86c7dcb3a58e2c828;p=libftdi diff --git a/src/ftdi.c b/src/ftdi.c index b67f950..c62ede7 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -1954,7 +1954,8 @@ int ftdi_eeprom_decode(struct ftdi_eeprom *eeprom, unsigned char *buf, int size) // Addr 04: Product ID eeprom->product_id = buf[0x04] + (buf[0x05] << 8); - switch (buf[0x06] + (buf[0x07]<<8)) + value = buf[0x06] + (buf[0x07]<<8); + switch (value) { case 0x0400: eeprom->BM_type_chip = 1;