libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v0.17-308-g6162087

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 13 Apr 2012 14:45:16 +0200 (CEST)
The branch, master has been updated
       via  6162087977a2040b3f2a265b3b510e15adcbd77f (commit)
      from  4b35b81054115909da06b91f196121c550123abb (commit)


- Log -----------------------------------------------------------------
commit 6162087977a2040b3f2a265b3b510e15adcbd77f
Author: Anders Larsen <al@xxxxxxxxxxx>
Date:   Mon Apr 9 17:29:19 2012 +0200

    ftdi_eeprom: remove redundant debug output
    
    The (commented-out) debug output after ftdi_eeprom_decode() can be removed
    as that function can generate it itself (and it contained obsolete fields
    anyway).
    Remove the unused config option "chip_type" in the process.
    
    Signed-off-by: Anders Larsen <al@xxxxxxxxxxx>

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

Summary of changes:
 ftdi_eeprom/main.c |   25 +------------------------
 1 files changed, 1 insertions(+), 24 deletions(-)

diff --git a/ftdi_eeprom/main.c b/ftdi_eeprom/main.c
index 74ae7e2..0ffffd7 100644
--- a/ftdi_eeprom/main.c
+++ b/ftdi_eeprom/main.c
@@ -107,7 +107,6 @@ int main(int argc, char *argv[])
         CFG_INT("product_id", 0, 0),
         CFG_BOOL("self_powered", cfg_true, 0),
         CFG_BOOL("remote_wakeup", cfg_true, 0),
-        CFG_STR_LIST("chip_type", "{BM,R,other}", 0),
         CFG_BOOL("in_is_isochronous", cfg_false, 0),
         CFG_BOOL("out_is_isochronous", cfg_false, 0),
         CFG_BOOL("suspend_pull_downs", cfg_false, 0),
@@ -240,29 +239,7 @@ int main(int argc, char *argv[])
     
     if (_read > 0)
     {
-
-        ftdi_eeprom_decode(ftdi, 0);
-        /* Debug output */
-        /*
-        const char* chip_types[] = {"other", "BM", "R"};
-        printf("vendor_id = \"%04x\"\n", eeprom->vendor_id);
-        printf("product_id = \"%04x\"\n", eeprom->product_id);
-        printf("chip_type = \"%s\"\n",
-          (eeprom->chip_type > 0x06) || (eeprom->chip_type & 0x01) ? "unknown":
-          chip_types[eeprom->chip_type>>1]);
-        printf("self_powered = \"%s\"\n", eeprom->self_powered?"true":"false");
-        printf("remote_wakeup = \"%s\"\n", 
eeprom->remote_wakeup?"true":"false");
-        printf("max_power = \"%d\"\n", eeprom->max_power);
-        printf("in_is_isochronous = \"%s\"\n", 
eeprom->in_is_isochronous?"true":"false");
-        printf("out_is_isochronous = \"%s\"\n", 
eeprom->out_is_isochronous?"true":"false");
-        printf("suspend_pull_downs = \"%s\"\n", 
eeprom->suspend_pull_downs?"true":"false");
-        printf("use_serial = \"%s\"\n", eeprom->use_serial?"true":"false");
-        printf("change_usb_version = \"%s\"\n", 
eeprom->change_usb_version?"true":"false");
-        printf("usb_version = \"%d\"\n", eeprom->usb_version);
-        printf("manufacturer = \"%s\"\n", eeprom->manufacturer);
-        printf("product = \"%s\"\n", eeprom->product);
-        printf("serial = \"%s\"\n", eeprom->serial);
-        */
+        ftdi_eeprom_decode(ftdi, 0 /* debug: 1 */);
 
         eeprom_buf = malloc(my_eeprom_size);
         ftdi_get_eeprom_buf(ftdi, eeprom_buf, my_eeprom_size);


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. v0.17-308-g6162087, libftdi-git <=