X-Git-Url: http://developer.intra2net.com/git/?a=blobdiff_plain;f=src%2Fftdi.c;h=62f7242c02b15cff8b797bfbad0d099b019f306a;hb=7e76a5ef2b1022adab883bf1202c34d3f6b4b2c2;hp=c0da71dfbbd3a71815b3b1904d27b24d41fac09c;hpb=f456288064f8a671c6a2125f3fabb6c1ae5cf250;p=libftdi diff --git a/src/ftdi.c b/src/ftdi.c index c0da71d..62f7242 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2190,12 +2190,16 @@ void ftdi_eeprom_initdefaults(struct ftdi_context *ftdi) eeprom->vendor_id = 0x0403; eeprom->use_serial = USE_SERIAL_NUM; - if((ftdi->type= TYPE_AM) || (ftdi->type= TYPE_BM) ||(ftdi->type= TYPE_R)) + if((ftdi->type == TYPE_AM) || (ftdi->type == TYPE_BM) || + (ftdi->type == TYPE_R)) eeprom->product_id = 0x6001; else eeprom->product_id = 0x6010; switch (ftdi->type) { + case TYPE_2232C: + eeprom->release = 0x500; + break; case TYPE_2232H: eeprom->release = 0x200; break; @@ -2718,7 +2722,7 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, unsigned char *buf, int size, channel_mode[eeprom->channel_a_type], (eeprom->channel_a_driver)?" VCP":"", (eeprom->high_current_a)?" High Currenr IO":""); - if (ftdi->type == TYPE_2232C) + if (ftdi->type >= TYPE_2232C) fprintf(stdout,"Channel B has Mode %s%s%s\n", channel_mode[eeprom->channel_b_type], (eeprom->channel_b_driver)?" VCP":"",