]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/zketech-ebd-usb/protocol.c
zketech-ebd-usb: Don't ignore errors
[libsigrok.git] / src / hardware / zketech-ebd-usb / protocol.c
index b3098c5d529d607936fbf94048e73e24accc485e..4c586f6fd71989deec056a650a2abf96fb4e29a2 100644 (file)
@@ -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;