# HG changeset patch # User Mychaela Falconia # Date 1694380940 0 # Node ID 940cde8a99b699fd9f7827f4b2921bf3e41a1666 # Parent f5847be43d35e6467f29f3e47f3fa24869c33431 fteeprom-prog: we don't need to claim the interface diff -r f5847be43d35 -r 940cde8a99b6 fteeprom/fteeprom-prog.c --- a/fteeprom/fteeprom-prog.c Sun Sep 10 21:13:58 2023 +0000 +++ b/fteeprom/fteeprom-prog.c Sun Sep 10 21:22:20 2023 +0000 @@ -114,11 +114,15 @@ 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); + } if (ft232r_mode) ft232r_eeprom_magic(usbh); for (n = 0; n < eeprom_size; n++) ftmini_write_eeprom_loc(usbh, n, eeprom[n]); - usbwrap_close_dev(usbh); + usb_close(usbh); exit(0); }