Unify the metex14 package parser with the other drivers regarding the use of
the digits properties in the analog payload. This commit adjusts the previously
unclear, but now clarified, use of these properties:
Number of significant digits after the decimal point, if positive. When
negative, exponent with reversed polarity that is necessary to express the
value with all digits without a decimal point.
This commit partly reverts commit
7fb4ff0
{
int factor;
- (void)exponent;
-
/* Factors */
factor = 0;
if (info->is_pico)
if (info->is_mega)
factor += 6;
*floatval *= powf(10, factor);
+ *exponent += factor;
/* Measurement modes */
if (info->is_volt) {