Show SR_DF_ANALOG2 packets in debug output.

This commit is contained in:
Bert Vermeulen 2014-11-18 00:24:37 +01:00
parent 28b4243493
commit 1954dfa963
1 changed files with 6 additions and 0 deletions

View File

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