FT4232: show mode for both C and D channels
authorYegor Yefremov <yegorslists@googlemail.com>
Tue, 29 Aug 2023 08:50:28 +0000 (10:50 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 29 Aug 2023 13:38:06 +0000 (15:38 +0200)
src/ftdi.c

index 3d16674..2fb3cf8 100644 (file)
@@ -3885,6 +3885,13 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, int verbose)
                     channel_mode[eeprom->channel_b_type],
                     (eeprom->channel_b_driver)?" VCP":"",
                     (eeprom->high_current_b)?" High Current IO":"");
+        if (ftdi->type == TYPE_4232H)
+        {
+            fprintf(stdout,"Channel C has Mode UART%s\n",
+                    (eeprom->channel_c_driver)?" VCP":"");
+            fprintf(stdout,"Channel D has Mode UART%s\n",
+                    (eeprom->channel_d_driver)?" VCP":"");
+        }
         if (((ftdi->type == TYPE_BM) || (ftdi->type == TYPE_2232C)) &&
                 eeprom->use_usb_version)
             fprintf(stdout,"Use explicit USB Version %04x\n",eeprom->usb_version);