X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Fcommon%2Fscpi.c;h=591b9770f8b1a0a40326209e2dcd51380f8ab2e4;hb=c1bcb8cc633cc69ce4a872f59ec2b686bc00bd04;hp=8093490886d8eace63ece67a5ddbde6f4d880db8;hpb=613c11084915ac24de9bd0355a7479ece9adfa35;p=libsigrok.git diff --git a/hardware/common/scpi.c b/hardware/common/scpi.c index 80934908..591b9770 100644 --- a/hardware/common/scpi.c +++ b/hardware/common/scpi.c @@ -404,7 +404,7 @@ SR_PRIV int sr_scpi_get_float(struct sr_scpi_dev_inst *scpi, if (!response) return SR_ERR; - if (sr_atof(response, scpi_response) == SR_OK) + if (sr_atof_ascii(response, scpi_response) == SR_OK) ret = SR_OK; else ret = SR_ERR; @@ -505,7 +505,7 @@ SR_PRIV int sr_scpi_get_floatv(struct sr_scpi_dev_inst *scpi, response_array = g_array_sized_new(TRUE, FALSE, sizeof(float), 256); while (*ptr) { - if (sr_atof(*ptr, &tmp) == SR_OK) + if (sr_atof_ascii(*ptr, &tmp) == SR_OK) response_array = g_array_append_val(response_array, tmp); else