]> sigrok.org Git - libsigrok.git/commitdiff
appa-55ii: properly set encoding digits also for log memory reception
authorAurelien Jacobs <redacted>
Sun, 28 Aug 2016 20:53:04 +0000 (22:53 +0200)
committerUwe Hermann <redacted>
Sun, 28 Aug 2016 22:25:19 +0000 (00:25 +0200)
src/hardware/appa-55ii/protocol.c

index a7cfd48dd62ca71bebb31eef61e0f60725c9aed4..ef265ff0196eb1b7f9498692450a66f347f5995c 100644 (file)
@@ -163,7 +163,7 @@ static void appa_55ii_log_data_parse(struct sr_dev_inst *sdi)
                /* FIXME: Timestamp should be sent in the packet. */
                sr_dbg("Timestamp: %02d:%02d:%02d", buf[2], buf[3], buf[4]);
 
-               sr_analog_init(&analog, &encoding, &meaning, &spec, 0);
+               sr_analog_init(&analog, &encoding, &meaning, &spec, 1);
                analog.num_samples = 1;
                analog.meaning->mq = SR_MQ_TEMPERATURE;
                analog.meaning->unit = SR_UNIT_CELSIUS;