From: Frank Stettner Date: Thu, 18 Jan 2018 17:41:26 +0000 (+0100) Subject: arachnid-labs-re-load-pro: Add encoding.digits to analog packet X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d7e348f4819cb7c2ede934096555a006f9cbd999;p=libsigrok.git arachnid-labs-re-load-pro: Add encoding.digits to analog packet --- 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);