Better errors from ftdi (Jon Smirl)

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1478 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Arnim Läuger 16 years ago
parent 0cbb21f6ec
commit d097268153

@ -1,5 +1,7 @@
2009-04-06 Arnim Laeuger <arniml>
* src/tap/usbconn/libftdi.c: Better errors from ftdi (Jon Smirl)
* src/flash/jedec.c: Author added.
2009-04-05 Arnim Laeuger <arniml>

@ -319,7 +319,8 @@ usbconn_ftdi_common_open( usbconn_t *conn, int printerr )
if (status < 0)
{
if (printerr)
/* device not found == -3 */
if (printerr || (status != -3))
printf( _("%s() failed: %s\n"), __FUNCTION__,
ftdi_get_error_string( fc ) );
ftdi_deinit( fc );

Loading…
Cancel
Save