]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/kecheng-kc-330b/protocol.c
kecheng-kc-330b: properly set encoding digits
[libsigrok.git] / 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;