From: Bert Vermeulen Date: Thu, 1 Nov 2012 22:38:10 +0000 (+0100) Subject: analog: if no MQ unit was set of recognized, just print the value X-Git-Tag: dsupstream~603 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=bde4f4296d8d7a3653c93fc7034e6f7c019e1255;p=libsigrok.git analog: if no MQ unit was set of recognized, just print the value --- diff --git a/output/analog.c b/output/analog.c index 4f8715aa..eec2efd4 100644 --- a/output/analog.c +++ b/output/analog.c @@ -143,6 +143,8 @@ static void fancyprint(int unit, int mqflags, float value, GString *out) case SR_UNIT_DECIBEL_VOLT: si_printf(value, out, "dBV"); break; + default: + si_printf(value, out, ""); } if ((mqflags & (SR_MQFLAG_AC | SR_MQFLAG_DC)) == (SR_MQFLAG_AC | SR_MQFLAG_DC)) g_string_append_printf(out, " AC+DC");