]> sigrok.org Git - libsigrok.git/blobdiff - hardware/agilent-dmm/sched.c
radioshack-dmm: Cosmetics, coding-style, cleanups.
[libsigrok.git] / hardware / agilent-dmm / sched.c
index 140c53403f938c7a88a6ed6548baefc7bb36a45a..56e768dbc0ebfac1270c38b4647a755228794815 100644 (file)
@@ -89,7 +89,7 @@ static void receive_line(const struct sr_dev_inst *sdi)
 
 SR_PRIV int agdmm_receive_data(int fd, int revents, void *cb_data)
 {
-       const struct sr_dev_inst *sdi;
+       struct sr_dev_inst *sdi;
        struct dev_context *devc;
        int len;
 
@@ -241,7 +241,7 @@ static int recv_fetc(const struct sr_dev_inst *sdi, GMatchInfo *match)
                return SR_OK;
 
        if (!strcmp(g_match_info_get_string(match), "+9.90000000E+37")) {
-               /* An invalid measurement shows up on the display as "O.L, but
+               /* An invalid measurement shows up on the display as "O.L", but
                 * comes through like this. Since comparing 38-digit floats
                 * is rather problematic, we'll cut through this here. */
                fvalue = NAN;