zketech-ebd-usb: Don't ignore errors

This commit is contained in:
Florian Ragwitz 2020-11-28 18:19:24 -08:00 committed by Soeren Apel
parent a99ff45359
commit b41562f6ce
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ SR_PRIV int ebd_loadstart(struct sr_serial_dev_inst *serial, struct dev_context
int ret; int ret;
ret = send_cmd(serial, start, 10); ret = send_cmd(serial, start, 10);
if (ret)
return ret;
sr_dbg("Current limit: %f.", devc->current_limit); sr_dbg("Current limit: %f.", devc->current_limit);
if (ebd_current_is0(devc)) if (ebd_current_is0(devc))
return SR_OK; return SR_OK;