X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Flcr%2Fes51919.c;h=896565301796592fbc4d0aa55d0e4826abba271a;hb=8b0ad3a55977fe90942d761ae4a075399b323f08;hp=cbce7dcd849d15332200850962bc69d23f829ecf;hpb=83478149b1d5a0476c15241dfce1fb2cf014e0c5;p=libsigrok.git
diff --git a/src/lcr/es51919.c b/src/lcr/es51919.c
index cbce7dcd..89656530 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);