]> sigrok.org Git - libsigrok.git/blobdiff - src/output/analog.c
Introduce OutputFlag
[libsigrok.git] / src / output / analog.c
index 3b9a581202213414d5413932c4fee8a6a940255f..ff5e91f32f092eb60e67ff29e35d1ad90ca17a41 100644 (file)
@@ -173,7 +173,7 @@ static void fancyprint(int unit, int mqflags, float value, GString *out)
                        g_string_append(out, " %oA");
                break;
        case SR_UNIT_CONCENTRATION:
-               g_string_append_printf(out, "%f ppm", value * 1000000);
+               g_string_append_printf(out, "%f ppm", value * (1000 * 1000));
                break;
        case SR_UNIT_REVOLUTIONS_PER_MINUTE:
                si_printf(value, out, "RPM");
@@ -345,6 +345,7 @@ SR_PRIV struct sr_output_module output_analog = {
        .name = "Analog",
        .desc = "Analog data and types",
        .exts = NULL,
+       .flags = 0,
        .options = get_options,
        .init = init,
        .receive = receive,