]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/kecheng-kc-330b/api.c
scpi: Rephrase buffer resize for free space during SCPI read, add comments
[libsigrok.git] / src / hardware / kecheng-kc-330b / api.c
index 4dacfdc0f90bbb8d6a9312dcd42837754d537d1e..30bb1b2a578bb05996817dae2655cedcaf61253b 100644 (file)
@@ -184,7 +184,7 @@ static int dev_close(struct sr_dev_inst *sdi)
        usb = sdi->conn;
 
        if (!usb->devhdl)
-               /*  Nothing to do. */
+               /* Nothing to do. */
                return SR_OK;
 
        /* This allows a frontend to configure the device without ever
@@ -389,7 +389,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
 
        devc->num_samples = 0;
 
-       std_session_send_df_header(sdi, LOG_PREFIX);
+       std_session_send_df_header(sdi);
 
        if (devc->data_source == DATA_SOURCE_LIVE) {
                /* Force configuration. */
@@ -412,7 +412,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
                devc->stored_samples = (buf[7] << 8) | buf[8];
                if (devc->stored_samples == 0) {
                        /* Notify frontend of empty log by sending start/end packets. */
-                       std_session_send_df_end(sdi, LOG_PREFIX);
+                       std_session_send_df_end(sdi);
                        return SR_OK;
                }