demo: properly set encoding digits

This commit is contained in:
Aurelien Jacobs 2016-08-21 16:57:58 +02:00 committed by Uwe Hermann
parent bcaadb366f
commit 3be044aa90
1 changed files with 1 additions and 1 deletions

View 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;