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

index 6b30459c361809dc1accb8fcd869dca554aac31e..d5c75b3c01db675d9b811bec1ee1b7127cb7be06 100644 (file)
@@ -74,7 +74,7 @@ static void process_packet(const struct sr_dev_inst *sdi)
        }
        fvalue /= 10;
 
-       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->unit = SR_UNIT_DECIBEL_SPL;
        analog.meaning->channels = sdi->channels;