X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fhardware%2Ftesto%2Fprotocol.c;fp=src%2Fhardware%2Ftesto%2Fprotocol.c;h=396612fdc3a479377ae05e3ac7a529046486abdf;hb=7dcaddd3f0df3a87dae252eb1f64f7b0e3997b8f;hp=eb02f9f8465a8ec13027f7435ca540b31edb6d54;hpb=869c83751149aa03cda072355c2b670569cdfc0d;p=libsigrok.git diff --git a/src/hardware/testo/protocol.c b/src/hardware/testo/protocol.c index eb02f9f8..396612fd 100644 --- a/src/hardware/testo/protocol.c +++ b/src/hardware/testo/protocol.c @@ -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;