arachnid-labs-re-load-pro: Add encoding.digits to analog packet
This commit is contained in:
parent
2153093941
commit
d7e348f481
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue