comparison fteeprom/fteeprom-erase.c @ 42:2746b160afb7

fteeprom-erase: we don't need to claim the interface
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 10 Sep 2023 21:26:04 +0000
parents af801ab43a33
children d682cac178c2
comparison
equal deleted inserted replaced
41:940cde8a99b6 42:2746b160afb7
32 dev = find_usbdev_by_desc_string(argv[1]); 32 dev = find_usbdev_by_desc_string(argv[1]);
33 if (!dev) { 33 if (!dev) {
34 fprintf(stderr, "error: specified USB device not found\n"); 34 fprintf(stderr, "error: specified USB device not found\n");
35 exit(1); 35 exit(1);
36 } 36 }
37 usbh = usbwrap_open_dev(dev, 1); 37 usbh = usb_open(dev);
38 if (!usbh) {
39 fprintf(stderr, "error: usb_open() failed\n");
40 exit(1);
41 }
38 ftmini_erase_eeprom(usbh); 42 ftmini_erase_eeprom(usbh);
39 usbwrap_close_dev(usbh); 43 usb_close(usbh);
40 exit(0); 44 exit(0);
41 } 45 }