]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/testo/protocol.c
Have remaining drivers default to digits=2 for analog values.
[libsigrok.git] / src / hardware / testo / protocol.c
index eb02f9f8465a8ec13027f7435ca540b31edb6d54..396612fdc3a479377ae05e3ac7a529046486abdf 100644 (file)
@@ -246,7 +246,8 @@ SR_PRIV void testo_receive_packet(const struct sr_dev_inst *sdi)
 
        packet.type = SR_DF_ANALOG;
        packet.payload = &analog;
-       sr_analog_init(&analog, &encoding, &meaning, &spec, 0);
+       /* TODO: Use proper 'digits' value for this device (and its modes). */
+       sr_analog_init(&analog, &encoding, &meaning, &spec, 2);
        analog.num_samples = 1;
        analog.meaning->mqflags = 0;
        analog.data = &value;