From fa3032f085fc9e468c6ea19c23fd1a4316373d13 Mon Sep 17 00:00:00 2001 From: Davide Michelizza Date: Wed, 23 Oct 2013 16:00:31 +0200 Subject: [PATCH] Fix FT232H eeprom user area size Trying to write the eeprom for a FT232H chip I've found some issues in ftdi_eeprom_build(): - the eeprom user area is misaligned (in the comment the offset in correct but the value used is not). --- src/ftdi.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/ftdi.c b/src/ftdi.c index 8124985..26b1707 100644 --- a/src/ftdi.c +++ b/src/ftdi.c @@ -2691,8 +2691,6 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi) i = 0; switch (ftdi->type) { - case TYPE_232H: - i += 2; case TYPE_2232H: case TYPE_4232H: i += 2; @@ -2704,6 +2702,7 @@ int ftdi_eeprom_build(struct ftdi_context *ftdi) case TYPE_BM: i += 0x94; break; + case TYPE_232H: case TYPE_230X: i = 0xa0; break; -- 1.7.1