From: Bert Vermeulen Date: Mon, 17 Nov 2014 23:24:37 +0000 (+0100) Subject: Show SR_DF_ANALOG2 packets in debug output. X-Git-Tag: libsigrok-0.4.0~761 X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=1954dfa96310e286bea6b4d55629ba08cee2f417;p=libsigrok.git Show SR_DF_ANALOG2 packets in debug output. --- diff --git a/src/session.c b/src/session.c index f3232669..16bd2ab3 100644 --- a/src/session.c +++ b/src/session.c @@ -613,6 +613,7 @@ static void datafeed_dump(const struct sr_datafeed_packet *packet) { const struct sr_datafeed_logic *logic; const struct sr_datafeed_analog *analog; + const struct sr_datafeed_analog2 *analog2; switch (packet->type) { case SR_DF_HEADER: @@ -634,6 +635,11 @@ static void datafeed_dump(const struct sr_datafeed_packet *packet) sr_dbg("bus: Received SR_DF_ANALOG packet (%d samples).", analog->num_samples); break; + case SR_DF_ANALOG2: + analog2 = packet->payload; + sr_dbg("bus: Received SR_DF_ANALOG2 packet (%d samples).", + analog2->num_samples); + break; case SR_DF_END: sr_dbg("bus: Received SR_DF_END packet."); break;