]> sigrok.org Git - libsigrok.git/commitdiff
demo: properly set encoding digits
authorAurelien Jacobs <redacted>
Sun, 21 Aug 2016 14:57:58 +0000 (16:57 +0200)
committerUwe Hermann <redacted>
Tue, 23 Aug 2016 10:58:05 +0000 (12:58 +0200)
src/hardware/demo/demo.c

index d6b18ae7a5efe271d973465524f2a457bb7b8940..baf715ba50f866f651055c17286941614a40c0b4 100644 (file)
@@ -326,7 +326,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
                        /* Every channel gets a generator struct. */
                        ag = g_malloc(sizeof(struct analog_gen));
                        ag->amplitude = DEFAULT_ANALOG_AMPLITUDE;
-                       sr_analog_init(&ag->packet, &ag->encoding, &ag->meaning, &ag->spec, 0);
+                       sr_analog_init(&ag->packet, &ag->encoding, &ag->meaning, &ag->spec, 2);
                        ag->packet.meaning->channels = cg->channels;
                        ag->packet.meaning->mq = 0;
                        ag->packet.meaning->mqflags = 0;