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:
Gerhard Sittig 2019-05-01 20:28:50 +02:00
parent 10cfb04826
commit e86cc12b66
1 changed files with 3 additions and 0 deletions

View File

@ -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");
}