From 7249d7833b69c1d753b18112891870d8aeda3d69 Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sat, 15 Dec 2012 22:50:33 +0100 Subject: [PATCH] analog: support ppm output --- output/analog.c | 3 +++ 1 file changed, 3 insertions(+) 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, ""); }