]> sigrok.org Git - libsigrok.git/commitdiff
kecheng-kc-330b: properly set encoding digits
authorAurelien Jacobs <redacted>
Tue, 23 Aug 2016 22:51:22 +0000 (00:51 +0200)
committerAurelien Jacobs <redacted>
Tue, 23 Aug 2016 23:01:23 +0000 (01:01 +0200)
src/hardware/kecheng-kc-330b/protocol.c

index a6ec3ac09ace26999e61029a1a3737bfad1e6444..886be6f742c013e4bab8922179aa409288812ec6 100644 (file)
@@ -109,7 +109,7 @@ static void send_data(const struct sr_dev_inst *sdi, void *buf, unsigned int buf
 
        devc = sdi->priv;
 
-       sr_analog_init(&analog, &encoding, &meaning, &spec, 0);
+       sr_analog_init(&analog, &encoding, &meaning, &spec, 1);
        analog.meaning->mq = SR_MQ_SOUND_PRESSURE_LEVEL;
        analog.meaning->mqflags = devc->mqflags;
        analog.meaning->unit = SR_UNIT_DECIBEL_SPL;