]> sigrok.org Git - libsigrok.git/commitdiff
metex14: Print contents of received packet.
authorAlexandru Gagniuc <redacted>
Fri, 30 Nov 2012 18:40:17 +0000 (12:40 -0600)
committerUwe Hermann <redacted>
Sun, 2 Dec 2012 13:21:18 +0000 (14:21 +0100)
The packet is an ASCII string. We can simply print the raw packet data.

Signed-off-by: Alexandru Gagniuc <redacted>
hardware/common/dmm/metex14.c

index e6b9b98309c791b6e56b8ea12362b90b7aeeaad3..9364dcb0d0f87dddc0a218f9b2afe3a0306d984d 100644 (file)
@@ -291,6 +291,9 @@ SR_PRIV int sr_metex14_parse(const uint8_t *buf, float *floatval,
 
        info_local = (struct metex14_info *)info;
 
+       /* Don't print byte 13. That one contains the carriage return. */
+       sr_dbg("DMM packet: \"%.13s\"", buf);
+
        if ((ret = parse_value(buf, floatval)) != SR_OK) {
                sr_err("Error parsing value: %d.", ret);
                return ret;