The packet is an ASCII string. We can simply print the raw packet data.
Signed-off-by: Alexandru Gagniuc <redacted>
info_local = (struct metex14_info *)info;
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;
if ((ret = parse_value(buf, floatval)) != SR_OK) {
sr_err("Error parsing value: %d.", ret);
return ret;