X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Fscpi-pps%2Fprotocol.c;h=5afaa5e9743d20fc87f108a6d6eee25d28fc9ccf;hb=f6c685e4d340b52962c2ae983974936071578156;hp=4c7a649cda1f2aec73c8756b69b6af82123c3d10;hpb=869c83751149aa03cda072355c2b670569cdfc0d;p=libsigrok.git diff --git a/src/hardware/scpi-pps/protocol.c b/src/hardware/scpi-pps/protocol.c index 4c7a649c..5afaa5e9 100644 --- a/src/hardware/scpi-pps/protocol.c +++ b/src/hardware/scpi-pps/protocol.c @@ -67,7 +67,7 @@ SR_PRIV int scpi_pps_receive_data(int fd, int revents, void *cb_data) struct sr_scpi_dev_inst *scpi; struct pps_channel *pch; const struct channel_spec *ch_spec; - float f; + double d; int cmd; (void)fd; @@ -82,7 +82,7 @@ SR_PRIV int scpi_pps_receive_data(int fd, int revents, void *cb_data) scpi = sdi->conn; /* Retrieve requested value for this state. */ - if (sr_scpi_get_float(scpi, NULL, &f) == SR_OK) { + if (sr_scpi_get_double(scpi, NULL, &d) == SR_OK) { pch = devc->cur_channel->priv; ch_spec = &devc->device->channels[pch->hw_output_idx]; packet.type = SR_DF_ANALOG; @@ -106,7 +106,7 @@ SR_PRIV int scpi_pps_receive_data(int fd, int revents, void *cb_data) analog.spec->spec_digits = ch_spec->power[3]; } analog.meaning->mqflags = SR_MQFLAG_DC; - analog.data = &f; + analog.data = &d; sr_session_send(sdi, &packet); g_slist_free(analog.meaning->channels); }