From: poljar (Damir Jelić) Date: Thu, 16 Jan 2014 14:28:49 +0000 (+0100) Subject: scpi: Use sr_atof_ascii() instead of sr_atof(). X-Git-Tag: libsigrok-0.3.0~273 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=13dbd151fee223b0cff563fbee81d31e786494e8;p=libsigrok.git scpi: Use sr_atof_ascii() instead of sr_atof(). --- 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