fet: continue even if set VCC fails.
This is not a fatal error under all circumstances, for example when debugging a board with external power applied.
This commit is contained in:
parent
f96c57cb6e
commit
eab488da92
10
fet.c
10
fet.c
|
@ -870,12 +870,10 @@ device_t fet_open(transport_t transport, int proto_flags, int vcc_mv,
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
/* set VCC */
|
/* set VCC */
|
||||||
if (xfer(dev, C_VCC, NULL, 0, 1, vcc_mv) < 0) {
|
if (xfer(dev, C_VCC, NULL, 0, 1, vcc_mv) < 0)
|
||||||
fprintf(stderr, "fet: set VCC failed\n");
|
fprintf(stderr, "warning: fet: set VCC failed\n");
|
||||||
goto fail;
|
else
|
||||||
}
|
printf("Set Vcc: %d mV\n", vcc_mv);
|
||||||
|
|
||||||
printf("Set Vcc: %d mV\n", vcc_mv);
|
|
||||||
|
|
||||||
/* Identify the chip */
|
/* Identify the chip */
|
||||||
if (do_identify(dev, force_id) < 0) {
|
if (do_identify(dev, force_id) < 0) {
|
||||||
|
|
Loading…
Reference in New Issue