]> sigrok.org Git - libsigrok.git/blobdiff - hardware/motech-lps-30x/protocol.c
motech-lps-30x: Cleanup.
[libsigrok.git] / hardware / motech-lps-30x / protocol.c
index 5cffdcce3233b2934cc6f96d5f561cbc3b36223e..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... */
@@ -139,7 +137,6 @@ SR_PRIV int motech_lps_30x_receive_data(int fd, int revents, void *cb_data)
        struct sr_dev_inst *sdi;
        struct dev_context *devc;
        struct sr_serial_dev_inst *serial;
-       // char achar;
        int len;
        gdouble elapsed_s;
 
@@ -166,9 +163,6 @@ SR_PRIV int motech_lps_30x_receive_data(int fd, int revents, void *cb_data)
                                continue;
                        }
 
-                       // achar = *(devc->buf + devc->buflen);
-                       // sr_spew("read 0x%02x/%d/'%c'", achar, achar, achar);
-
                        devc->buflen += len;
                        devc->buf[devc->buflen] = '\0';