output: also print meta strings in analog output module
Meta packets not only communicate numbers, but also strings. Print them. This unbreaks the reflection of LCR meters' equivalent circuit model.
This commit is contained in:
parent
10cfb04826
commit
e86cc12b66
|
@ -118,6 +118,9 @@ static int receive(const struct sr_output *o, const struct sr_datafeed_packet *p
|
|||
g_string_append_printf(*out, "%"
|
||||
G_GUINT64_FORMAT,
|
||||
g_variant_get_uint64(src->data));
|
||||
} else if (srci->datatype == SR_T_STRING) {
|
||||
g_string_append_printf(*out, "%s",
|
||||
g_variant_get_string(src->data, NULL));
|
||||
}
|
||||
g_string_append(*out, "\n");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue