hp-3478a: Set correct number of digits

This commit is contained in:
Frank Stettner 2018-03-06 15:10:13 +01:00 committed by Uwe Hermann
parent acc587ff24
commit a575c90e81
1 changed files with 3 additions and 3 deletions

View File

@ -165,11 +165,11 @@ static int parse_function_byte(struct dev_context *devc, uint8_t function_byte)
{ {
/* Digits / Resolution (spec_digits must be set before range parsing) */ /* Digits / Resolution (spec_digits must be set before range parsing) */
if ((function_byte & SB1_DIGITS_BLOCK) == DIGITS_5_5) { if ((function_byte & SB1_DIGITS_BLOCK) == DIGITS_5_5) {
devc->spec_digits = 5; devc->spec_digits = 6;
} else if ((function_byte & SB1_DIGITS_BLOCK) == DIGITS_4_5) { } else if ((function_byte & SB1_DIGITS_BLOCK) == DIGITS_4_5) {
devc->spec_digits = 4; devc->spec_digits = 5;
} else if ((function_byte & SB1_DIGITS_BLOCK) == DIGITS_3_5) { } else if ((function_byte & SB1_DIGITS_BLOCK) == DIGITS_3_5) {
devc->spec_digits = 3; devc->spec_digits = 4;
} }
/* Function + Range */ /* Function + Range */