]> sigrok.org Git - libsigrok.git/commitdiff
Show SR_DF_ANALOG2 packets in debug output.
authorBert Vermeulen <redacted>
Mon, 17 Nov 2014 23:24:37 +0000 (00:24 +0100)
committerBert Vermeulen <redacted>
Mon, 17 Nov 2014 23:24:37 +0000 (00:24 +0100)
src/session.c

index f32326694e8fe9b8fba82e7d963f27adad28a004..16bd2ab3c4ec5e6f9bf471bdb8d52038a691c41c 100644 (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;