analog: if no MQ unit was set of recognized, just print the value

This commit is contained in:
Bert Vermeulen 2012-11-01 23:38:10 +01:00
parent 4d729ddcaf
commit bde4f4296d
1 changed files with 2 additions and 0 deletions

View 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");