]> sigrok.org Git - libsigrok.git/blobdiff - src/binary_helpers.c
binary_helpers: remove scaling factor from binary field extraction
[libsigrok.git] / src / binary_helpers.c
index e1c00dddc47162be18415c2b1594cac63b7daa01..f9b6655de87745af5c1e1e295a3c223a85a42f33 100644 (file)
@@ -56,8 +56,6 @@ SR_PRIV int bv_get_value(float *out, const struct binary_value_spec *spec,
 
 #undef VALUE_TYPE
 
-       if (spec->scale)
-               value *= spec->scale;
        if (out)
                *out = value;
        return SR_OK;