# HG changeset patch # User Mychaela Falconia # Date 1694289858 0 # Node ID df284688d0c8d9def374b82d614a5cf23c083b30 # Parent bb1d0956b0a85069fe9ae40a163a5aa36842ed08 fc-duart28-conf check-eeprom: same change as in fteeprom-read diff -r bb1d0956b0a8 -r df284688d0c8 duart28/main.c --- a/duart28/main.c Sat Sep 09 19:56:11 2023 +0000 +++ b/duart28/main.c Sat Sep 09 20:04:18 2023 +0000 @@ -32,9 +32,13 @@ fprintf(stderr, "error: no DUART28 adapter 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); + } read_eeprom(usbh); - usbwrap_close_dev(usbh); + usb_close(usbh); analyze_eeprom(); return 0; }