metex14: Print contents of received packet.

The packet is an ASCII string. We can simply print the raw packet data.

Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
This commit is contained in:
Alexandru Gagniuc 2012-11-30 12:40:17 -06:00 committed by Uwe Hermann
parent 76b55dfa8a
commit e82d7dbc20
1 changed files with 3 additions and 0 deletions

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