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:
Scott Allen 2015-09-18 21:42:24 -04:00 committed by Uwe Hermann
parent 115826529c
commit 6703bb2983
1 changed files with 1 additions and 1 deletions

View File

@ -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;