From: Florian Ragwitz Date: Sun, 29 Nov 2020 02:19:24 +0000 (-0800) Subject: zketech-ebd-usb: Don't ignore errors X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;ds=inline;h=b41562f6ce3ba5572d65965811e0eb1f62a4b223;p=libsigrok.git zketech-ebd-usb: Don't ignore errors --- 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;