FreeCalypso > hg > fc-usbser-tools
diff duart28/main.c @ 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 | 530ec3792de8 |
children | b9ecfa54fe2b |
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; }