From: Shawn Hoffman <godisgovernm...@gmail.com> --- src/ftdi.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/ftdi.c b/src/ftdi.c index 534e3dd..7c2e693 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2918,9 +2918,11 @@ static unsigned char type2bit(unsigned char type, enum ftdi_chip_type chip) } } case TYPE_230X: /* FT230X is only UART */ + case TYPE_AM: + case TYPE_BM: + case TYPE_4232H: default: return 0; } - return 0; } /** @@ -4625,7 +4627,7 @@ int ftdi_write_eeprom_location(struct ftdi_context *ftdi, int eeprom_addr, switch (ftdi->type) { case TYPE_BM: - case TYPE_2232C: + case TYPE_2232C: chip_type_location = 0x14; break; case TYPE_2232H: @@ -4635,6 +4637,9 @@ int ftdi_write_eeprom_location(struct ftdi_context *ftdi, int eeprom_addr, case TYPE_232H: chip_type_location = 0x1e; break; + case TYPE_AM: + case TYPE_R: + case TYPE_230X: default: ftdi_error_return(-4, "Device can't access unprotected area"); } -- 2.44.0.windows.1 -- libftdi - see http://www.intra2net.com/en/developer/libftdi for details. To unsubscribe send a mail to libftdi+unsubscr...@developer.intra2net.com