---
hardware/common/scpi.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hardware/common/scpi.c b/hardware/common/scpi.c
index 8093490..591b977 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
--
1.8.5.3
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel