]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/agilent-dmm/sched.c
agilent-dmm: Fix value parser.
[libsigrok.git] / src / hardware / agilent-dmm / sched.c
index bd9cb3885ba2ef78d528f2a3af394b691168af18..113673052cbaa729f4fe22437087714c4b45f2cc 100644 (file)
@@ -252,7 +252,7 @@ static int recv_fetc(const struct sr_dev_inst *sdi, GMatchInfo *match)
                fvalue = NAN;
        } else {
                mstr = g_match_info_fetch(match, 1);
-               if (sr_atof_ascii(mstr, &fvalue) != SR_OK || fvalue == 0.0) {
+               if (sr_atof_ascii(mstr, &fvalue) != SR_OK) {
                        g_free(mstr);
                        sr_err("Invalid float.");
                        return SR_ERR;