]> sigrok.org Git - libsigrok.git/commitdiff
zketech-ebd-usb: Don't ignore errors
authorFlorian Ragwitz <redacted>
Sun, 29 Nov 2020 02:19:24 +0000 (18:19 -0800)
committerSoeren Apel <redacted>
Sun, 21 Feb 2021 22:05:32 +0000 (23:05 +0100)
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;