From: Bert Vermeulen Date: Thu, 28 Aug 2014 15:44:24 +0000 (+0200) Subject: agilent-dmm: Fix value parser. X-Git-Tag: libsigrok-0.4.0~1085 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7c03b56443a514ce35b6be4fdfe2e9a3fac74e29;p=libsigrok.git agilent-dmm: Fix value parser. This considered 0.0 to be an invalid result for no good reason. --- diff --git a/src/hardware/agilent-dmm/sched.c b/src/hardware/agilent-dmm/sched.c index bd9cb388..11367305 100644 --- a/src/hardware/agilent-dmm/sched.c +++ b/src/hardware/agilent-dmm/sched.c @@ -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;