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
8
fet.c
8
fet.c
|
@ -870,11 +870,9 @@ device_t fet_open(transport_t transport, int proto_flags, int vcc_mv,
|
|||
goto fail;
|
||||
|
||||
/* set VCC */
|
||||
if (xfer(dev, C_VCC, NULL, 0, 1, vcc_mv) < 0) {
|
||||
fprintf(stderr, "fet: set VCC failed\n");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (xfer(dev, C_VCC, NULL, 0, 1, vcc_mv) < 0)
|
||||
fprintf(stderr, "warning: fet: set VCC failed\n");
|
||||
else
|
||||
printf("Set Vcc: %d mV\n", vcc_mv);
|
||||
|
||||
/* Identify the chip */
|
||||
|
|
Loading…
Reference in New Issue