FreeCalypso > hg > fc-usbser-tools
diff fteeprom/ftee-gen232r.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 | 957fb6e08577 |
line wrap: on
line diff
--- a/fteeprom/ftee-gen232r.c Mon Sep 04 06:38:29 2023 +0000 +++ b/fteeprom/ftee-gen232r.c Mon Sep 04 20:37:52 2023 +0000 @@ -5,6 +5,8 @@ #include <stdio.h> #include <stdlib.h> +extern FILE *open_eeprom_config_file(); + u_short vid = 0x0403, pid = 0x6001; char *manuf, *product; u_char byte00 = 0x00, byte01 = 0x40; @@ -24,7 +26,7 @@ int lineno; char *cp, *np; - inf = fopen(filename, "r"); + inf = open_eeprom_config_file(filename); if (!inf) { perror(filename); exit(1);