X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fzketech-ebd-usb%2Fprotocol.c;h=4c586f6fd71989deec056a650a2abf96fb4e29a2;hb=4da62209ddfa3aad12678c7141c19e9c3e8419c1;hp=b3098c5d529d607936fbf94048e73e24accc485e;hpb=4c5f70063ad6ae311809ee7818ddc9070fbe05cf;p=libsigrok.git diff --git a/src/hardware/zketech-ebd-usb/protocol.c b/src/hardware/zketech-ebd-usb/protocol.c index b3098c5d..4c586f6f 100644 --- a/src/hardware/zketech-ebd-usb/protocol.c +++ b/src/hardware/zketech-ebd-usb/protocol.c @@ -99,6 +99,9 @@ SR_PRIV int ebd_loadstart(struct sr_serial_dev_inst *serial, struct dev_context int ret; ret = send_cmd(serial, start, 10); + if (ret) + return ret; + sr_dbg("Current limit: %f.", devc->current_limit); if (ebd_current_is0(devc)) return SR_OK;