libsigrok/hardware/fx2lafw
Alexandru Gagniuc 443a14d81f fx2lafw: Print device failed to renumerate error
commit 378abfeac6 tried to solve a bug where
the fx2lafw driver would print "Device came back" even if a timeout had occured.

It solved that issue, but inadvertently introduced a new bug:
"Device came back" would be printed even if no firmware upload was performed.
This is counterintuitive, as the device is only reset when a firmware upload is
performed.

There are three cases:
i)   Firmware upload was successful
ii)  Firmware upload failed
iii) Firmware upload was NOT needed

Each case warrants a separate message from the driver. Print the
following messages depending on the outcome:

i)   "Device came back"
ii)  "Device failed to renumerate"
iii) "Firmware upload was not needed."

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2012-12-18 00:48:56 +01:00
..
Makefile.am fx2lafw: Implemented initial support for start capture 2012-03-07 07:52:05 +00:00
command.c fx2lafw: Use DRIVER_LOG_DOMAIN for log messages 2012-12-17 12:26:10 -06:00
command.h sr: moved sigrok.h so libsigrok/libsigrok.h 2012-07-05 01:17:28 +02:00
fx2lafw.c fx2lafw: Print device failed to renumerate error 2012-12-18 00:48:56 +01:00
fx2lafw.h fx2lafw: Use DRIVER_LOG_DOMAIN for log messages 2012-12-17 12:26:10 -06:00