]> sigrok.org Git - libsigrok.git/commitdiff
analog: if no MQ unit was set of recognized, just print the value
authorBert Vermeulen <redacted>
Thu, 1 Nov 2012 22:38:10 +0000 (23:38 +0100)
committerBert Vermeulen <redacted>
Fri, 2 Nov 2012 14:24:30 +0000 (15:24 +0100)
output/analog.c

index 4f8715aae28ac866acf966bef323ea7b0f910811..eec2efd4a61e861169e4d454443b244dafb856a0 100644 (file)
@@ -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");