mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-28 03:56:26 +03:00
Improve error message when usb device not found in avrftdi.c
This commit is contained in:
@@ -708,7 +708,7 @@ static int avrftdi_open(PROGRAMMER *pgm, const char *port) {
|
||||
// Todo: use desc and index argument, currently set to NULL and 0
|
||||
err = ftdi_usb_open_desc_index(pdata->ftdic, vid, pid, NULL, serial, 0);
|
||||
if(err) {
|
||||
pmsg_error("error %d occurred: %s\n", err, ftdi_get_error_string(pdata->ftdic));
|
||||
pmsg_error("%s (%d)\n", ftdi_get_error_string(pdata->ftdic), err);
|
||||
// usb_dev is initialized to the last usb device from probing
|
||||
pdata->ftdic->usb_dev = NULL;
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user