]> sigrok.org Git - libsigrok.git/blobdiff - output/analog.c
analog: support ppm output
[libsigrok.git] / output / analog.c
index 776f29549074dcbae0a23188ef53ce92b40b28c7..448b112efce12578c508980412a83d16c1b433b1 100644 (file)
@@ -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, "");
        }