From: Bert Vermeulen Date: Sat, 15 Dec 2012 21:50:33 +0000 (+0100) Subject: analog: support ppm output X-Git-Tag: dsupstream~448 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7249d7833b69c1d753b18112891870d8aeda3d69;p=libsigrok.git analog: support ppm output --- diff --git a/output/analog.c b/output/analog.c index 776f2954..448b112e 100644 --- a/output/analog.c +++ b/output/analog.c @@ -173,6 +173,9 @@ static void fancyprint(int unit, int mqflags, float value, GString *out) * a made-up notation. */ g_string_append(out, " %oA"); break; + case SR_UNIT_CONCENTRATION: + g_string_append_printf(out, "%f ppm", value * 1000000); + break; default: si_printf(value, out, ""); }