libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v1.0-34-gfa3032f

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 23 Oct 2013 16:01:44 +0200 (CEST)
The branch, master has been updated
       via  fa3032f085fc9e468c6ea19c23fd1a4316373d13 (commit)
      from  276750c1464b24cd334d483e9ccdab87d9673152 (commit)


- Log -----------------------------------------------------------------
commit fa3032f085fc9e468c6ea19c23fd1a4316373d13
Author: Davide Michelizza <dmichelizza@xxxxxxxxx>
Date:   Wed Oct 23 16:00:31 2013 +0200

    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).

-----------------------------------------------------------------------

Summary of changes:
 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;


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v1.0-34-gfa3032f, libftdi-git <=