From d7e348f4819cb7c2ede934096555a006f9cbd999 Mon Sep 17 00:00:00 2001 From: Frank Stettner Date: Thu, 18 Jan 2018 18:41:26 +0100 Subject: [PATCH] arachnid-labs-re-load-pro: Add encoding.digits to analog packet --- src/hardware/arachnid-labs-re-load-pro/protocol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hardware/arachnid-labs-re-load-pro/protocol.c b/src/hardware/arachnid-labs-re-load-pro/protocol.c index 9c080646..38405157 100644 --- a/src/hardware/arachnid-labs-re-load-pro/protocol.c +++ b/src/hardware/arachnid-labs-re-load-pro/protocol.c @@ -380,6 +380,7 @@ static void handle_packet(const struct sr_dev_inst *sdi) meaning.mq = SR_MQ_VOLTAGE; meaning.mqflags = SR_MQFLAG_DC; meaning.unit = SR_UNIT_VOLT; + encoding.digits = 3; analog.data = &devc->voltage; sr_session_send(sdi, &packet); g_slist_free(l); @@ -391,6 +392,7 @@ static void handle_packet(const struct sr_dev_inst *sdi) meaning.mq = SR_MQ_CURRENT; meaning.mqflags = SR_MQFLAG_DC; meaning.unit = SR_UNIT_AMPERE; + encoding.digits = 3; analog.data = &devc->current; sr_session_send(sdi, &packet); g_slist_free(l);