demo: properly set encoding digits
This commit is contained in:
parent
bcaadb366f
commit
3be044aa90
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue