FreeCalypso > hg > fc-usbser-tools
diff fteeprom/ftee-gen2232c.c @ 7:b2c891299e83
ftee-gen*: look for EEPROM config file in /opt/freecalypso/ftdi
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 04 Sep 2023 20:37:52 +0000 |
parents | 11b8a30333b3 |
children | 201503e4be18 |
line wrap: on
line diff
--- a/fteeprom/ftee-gen2232c.c Mon Sep 04 06:38:29 2023 +0000 +++ b/fteeprom/ftee-gen2232c.c Mon Sep 04 20:37:52 2023 +0000 @@ -6,6 +6,8 @@ #include <stdlib.h> #include <unistd.h> +extern FILE *open_eeprom_config_file(); + char *configfile, *serial; u_short vid = 0x0403, pid = 0x6010; @@ -66,7 +68,7 @@ int lineno; char *cp, *np; - inf = fopen(configfile, "r"); + inf = open_eeprom_config_file(configfile); if (!inf) { perror(configfile); exit(1);