X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Flcr%2Fes51919.c;h=cbe51179b7bfb403c1fa43e778f6edbf8feba00c;hb=1c47e0da8f2571bc34dbdc368c3c1f55318c3aa0;hp=cbce7dcd849d15332200850962bc69d23f829ecf;hpb=83478149b1d5a0476c15241dfce1fb2cf014e0c5;p=libsigrok.git diff --git a/src/lcr/es51919.c b/src/lcr/es51919.c index cbce7dcd..cbe51179 100644 --- a/src/lcr/es51919.c +++ b/src/lcr/es51919.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include @@ -484,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 { @@ -616,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; @@ -657,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); @@ -674,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); @@ -926,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. */