From: Aurelien Jacobs Date: Tue, 23 Aug 2016 22:51:22 +0000 (+0200) Subject: kecheng-kc-330b: properly set encoding digits X-Git-Tag: libsigrok-0.5.0~243 X-Git-Url: http://sigrok.org/gitweb/?a=commitdiff_plain;h=53b4ea3921a004432d9531ef3b0d9883c2be634e;p=libsigrok.git kecheng-kc-330b: properly set encoding digits --- diff --git a/src/hardware/kecheng-kc-330b/protocol.c b/src/hardware/kecheng-kc-330b/protocol.c index a6ec3ac0..886be6f7 100644 --- a/src/hardware/kecheng-kc-330b/protocol.c +++ b/src/hardware/kecheng-kc-330b/protocol.c @@ -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;