arachnid-labs-re-load-pro: Add encoding.digits to analog packet

This commit is contained in:
Frank Stettner 2018-01-18 18:41:26 +01:00 committed by Uwe Hermann
parent 2153093941
commit d7e348f481
1 changed files with 2 additions and 0 deletions

View 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);