X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Fanalog.c;h=ed8e163e4984f7ec3b626cd29e38867f369c5ad5;hb=7c16e74d45b91123206efee2116d86462c8e707c;hp=3b9a581202213414d5413932c4fee8a6a940255f;hpb=8a174d23427735617d69c7502ed8dcade786bbf9;p=libsigrok.git diff --git a/src/output/analog.c b/src/output/analog.c index 3b9a5812..ed8e163e 100644 --- a/src/output/analog.c +++ b/src/output/analog.c @@ -21,7 +21,7 @@ #include #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "output/analog" @@ -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,