]> sigrok.org Git - libsigrok.git/commitdiff
arachnid-labs-re-load-pro: Add encoding.digits to analog packet
authorFrank Stettner <redacted>
Thu, 18 Jan 2018 17:41:26 +0000 (18:41 +0100)
committerUwe Hermann <redacted>
Sat, 3 Mar 2018 18:25:05 +0000 (19:25 +0100)
src/hardware/arachnid-labs-re-load-pro/protocol.c

index 9c080646c29fdca36236ca22136742cb20e40dad..38405157308b6d5a325b7a2c5c7a71cb0b3eb478 100644 (file)
@@ -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);