X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Flcr%2Fes51919.c;h=cbe51179b7bfb403c1fa43e778f6edbf8feba00c;hb=1c47e0da8f2571bc34dbdc368c3c1f55318c3aa0;hp=91aedbcab690e81d832d71c5a46bb22ce2c57f9b;hpb=6ec6c43b4738dbc7091f4a49a4ec80ea6102cb52;p=libsigrok.git diff --git a/src/lcr/es51919.c b/src/lcr/es51919.c index 91aedbca..cbe51179 100644 --- a/src/lcr/es51919.c +++ b/src/lcr/es51919.c @@ -485,7 +485,7 @@ static float parse_value(const uint8_t *buf) } static void parse_measurement(const uint8_t *pkt, float *floatval, - struct sr_datafeed_analog *analog, + struct sr_datafeed_analog_old *analog, int is_secondary) { static const struct { @@ -617,7 +617,7 @@ static int send_model_update(struct sr_dev_inst *sdi, unsigned int model) static void handle_packet(struct sr_dev_inst *sdi, const uint8_t *pkt) { struct sr_datafeed_packet packet; - struct sr_datafeed_analog analog; + struct sr_datafeed_analog_old analog; struct dev_context *devc; unsigned int val; float floatval; @@ -658,7 +658,7 @@ static void handle_packet(struct sr_dev_inst *sdi, const uint8_t *pkt) frame = TRUE; } - packet.type = SR_DF_ANALOG; + packet.type = SR_DF_ANALOG_OLD; packet.payload = &analog; sr_session_send(devc->cb_data, &packet); @@ -675,7 +675,7 @@ static void handle_packet(struct sr_dev_inst *sdi, const uint8_t *pkt) frame = TRUE; } - packet.type = SR_DF_ANALOG; + packet.type = SR_DF_ANALOG_OLD; packet.payload = &analog; sr_session_send(devc->cb_data, &packet); @@ -927,7 +927,6 @@ SR_PRIV int es51919_serial_acquisition_start(const struct sr_dev_inst *sdi, dev_limit_counter_start(&devc->frame_count); dev_time_counter_start(&devc->time_count); - /* Send header packet to the session bus. */ std_session_send_df_header(cb_data, LOG_PREFIX); /* Poll every 50ms, or whenever some data comes in. */