X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Frigol-ds%2Fprotocol.c;h=4a307178b604b8d2f636e07fa943cea21e4ddadc;hb=5faebab2903dc91949edc31f0a4b118d86090a30;hp=06dc1a3e3a0c73f7ad12f93b2124de0620d03738;hpb=6433156c3275df933e4bf6dcfb020c91fca0ae86;p=libsigrok.git diff --git a/src/hardware/rigol-ds/protocol.c b/src/hardware/rigol-ds/protocol.c index 06dc1a3e..4a307178 100644 --- a/src/hardware/rigol-ds/protocol.c +++ b/src/hardware/rigol-ds/protocol.c @@ -19,6 +19,7 @@ * along with this program. If not, see . */ +#include #include #include #include @@ -328,7 +329,7 @@ SR_PRIV int rigol_ds_capture_start(const struct sr_dev_inst *sdi) if (!(devc = sdi->priv)) return SR_ERR; - sr_dbg("Starting data capture for frameset %lu of %lu", + sr_dbg("Starting data capture for frameset %" PRIu64 " of %" PRIu64, devc->num_frames + 1, devc->limit_frames); switch (devc->model->series->protocol) { @@ -538,7 +539,7 @@ SR_PRIV int rigol_ds_receive(int fd, int revents, void *cb_data) struct sr_scpi_dev_inst *scpi; struct dev_context *devc; struct sr_datafeed_packet packet; - struct sr_datafeed_analog analog; + struct sr_datafeed_analog_old analog; struct sr_datafeed_logic logic; double vdiv, offset; int len, i, vref; @@ -674,7 +675,7 @@ SR_PRIV int rigol_ds_receive(int fd, int revents, void *cb_data) analog.mq = SR_MQ_VOLTAGE; analog.unit = SR_UNIT_VOLT; analog.mqflags = 0; - packet.type = SR_DF_ANALOG; + packet.type = SR_DF_ANALOG_OLD; packet.payload = &analog; sr_session_send(cb_data, &packet); g_slist_free(analog.channels);