Fix RadioShack 22-812 DMM incorrect readings.
The wrong byte was being used to test for the nano indicator. This resulted in reported resistance and capacitance readings being off by orders of magnitude. This fixes bug #657.
This commit is contained in:
parent
115826529c
commit
6703bb2983
|
@ -287,7 +287,7 @@ static double lcd_to_double(const struct rs9lcd_packet *rs_packet, int type)
|
|||
rawval *= -1;
|
||||
|
||||
/* See if we need to multiply our raw value by anything. */
|
||||
if (rs_packet->indicatrix1 & IND2_NANO)
|
||||
if (rs_packet->indicatrix2 & IND2_NANO)
|
||||
rawval *= 1E-9;
|
||||
else if (rs_packet->indicatrix2 & IND2_MICRO)
|
||||
rawval *= 1E-6;
|
||||
|
|
Loading…
Reference in New Issue