X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fmotech-lps-30x%2Fprotocol.c;h=c4afd657a730becdc1a26ede17917b35a193b9a5;hb=9740d9bf8c257e714d937602a10b8d81a7762d4e;hp=5cffdcce3233b2934cc6f96d5f561cbc3b36223e;hpb=1c3d002b68d9fe6fe511c84e4da7f164f32f35ff;p=libsigrok.git diff --git a/hardware/motech-lps-30x/protocol.c b/hardware/motech-lps-30x/protocol.c index 5cffdcce..c4afd657 100644 --- a/hardware/motech-lps-30x/protocol.c +++ b/hardware/motech-lps-30x/protocol.c @@ -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';