]> sigrok.org Git - libsigrok.git/commitdiff
motech-lps-30x: Cleanup.
authorMatthias Heidbrink <redacted>
Mon, 19 May 2014 19:38:23 +0000 (21:38 +0200)
committerMatthias Heidbrink <redacted>
Mon, 19 May 2014 19:38:23 +0000 (21:38 +0200)
hardware/motech-lps-30x/api.c
hardware/motech-lps-30x/protocol.c

index bc10702adf4660cecea401fc601d2052e1bd921c..ad0fb3c4212ecc3840dfcf8ce399399f2f5682a6 100644 (file)
@@ -612,7 +612,7 @@ static int config_set(int key, GVariant *data, const struct sr_dev_inst *sdi,
 
        devc = sdi->priv;
 
-       /* Cannot change settings while aquisition active, would cause a mess with commands.
+       /* Cannot change settings while acquisition active, would cause a mess with commands.
         * Changing this would be possible, but tricky. */
        if (devc->acq_running)
                return SR_ERR_NA;
index 11c1be6d3fca7a39b9fd7c3572b9d7172444582b..c4afd657a730becdc1a26ede17917b35a193b9a5 100644 (file)
@@ -66,12 +66,10 @@ static void send_data(struct sr_dev_inst *sdi)
 static void process_line(struct sr_dev_inst *sdi)
 {
        struct dev_context *devc;
-       struct sr_serial_dev_inst *serial;
        double dbl;
        int auxint;
 
        devc = sdi->priv;
-       serial = sdi->conn;
 
        switch (devc->acq_req_pending) {
        case 0: /* Should not happen... */