changeset 33:df284688d0c8

fc-duart28-conf check-eeprom: same change as in fteeprom-read
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 09 Sep 2023 20:04:18 +0000
parents bb1d0956b0a8
children f5fbcf1ff032
files duart28/main.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }