From: Robert Cox Date: Fri, 23 Dec 2016 13:30:55 +0000 (+0100) Subject: eeprom: Fix USE_SERIAL handling for 230X type chips X-Git-Tag: v1.4rc1~11 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=9013b6edddead7c6a1cc299cbc88c848af8ba911 eeprom: Fix USE_SERIAL handling for 230X type chips Found that the USE_SERIAL was not being set correctly in the eeprom_build routine for the 230X. Tracked the problem down to a line that hard coded the value when the 230X was first added. With this line removed code currently in the code before the switch will set the bit correctly for the 230X. --- diff --git a/src/ftdi.c b/src/ftdi.c index 0b26a7a..b87aa1c 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -3181,7 +3181,6 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi) break; case TYPE_230X: output[0x00] = 0x80; /* Actually, leave the default value */ - output[0x0a] = 0x08; /* Enable USB Serial Number */ /*FIXME: Make DBUS & CBUS Control configurable*/ output[0x0c] = 0; /* DBUS drive 4mA, CBUS drive 4 mA like factory default */ for (j = 0; j <= 6; j++)