From: Aurelien Jacobs Date: Sun, 21 Aug 2016 14:57:58 +0000 (+0200) Subject: demo: properly set encoding digits X-Git-Tag: libsigrok-0.5.0~254 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3be044aa9012a863d50dcca69c49ccd7d8209c60;p=libsigrok.git demo: properly set encoding digits --- diff --git a/src/hardware/demo/demo.c b/src/hardware/demo/demo.c index d6b18ae7..baf715ba 100644 --- a/src/hardware/demo/demo.c +++ b/src/hardware/demo/demo.c @@ -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;