agilent-dmm: Fix value parser.

This considered 0.0 to be an invalid result for no good reason.
This commit is contained in:
Bert Vermeulen 2014-08-28 17:44:24 +02:00
parent 6f479a0a72
commit 7c03b56443
1 changed files with 1 additions and 1 deletions

View 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;