# HG changeset patch # User Mychaela Falconia # Date 1694289371 0 # Node ID bb1d0956b0a85069fe9ae40a163a5aa36842ed08 # Parent 530ec3792de805b71f820fc043af913e8f71e37e fteeprom-read: we can do it without kicking off ftdi_sio driver diff -r 530ec3792de8 -r bb1d0956b0a8 fteeprom/fteeprom-read.c --- a/fteeprom/fteeprom-read.c Sat Sep 09 19:40:58 2023 +0000 +++ b/fteeprom/fteeprom-read.c Sat Sep 09 19:56:11 2023 +0000 @@ -60,7 +60,11 @@ fprintf(stderr, "error: specified USB device not found\n"); exit(1); } - usbh = usbwrap_open_dev(dev, 1); + usbh = usb_open(dev); + if (!usbh) { + fprintf(stderr, "error: usb_open() failed\n"); + exit(1); + } for (n = 0; n < eeprom_size; n++) { word = ftmini_read_eeprom_loc(usbh, n); col = n & 7; @@ -70,6 +74,6 @@ if (col == 7) putchar('\n'); } - usbwrap_close_dev(usbh); + usb_close(usbh); exit(0); }