From: Frank Stettner Date: Tue, 6 Mar 2018 14:10:13 +0000 (+0100) Subject: hp-3478a: Set correct number of digits X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a575c90e812c25443d0205f62471dcffa818f858;p=libsigrok.git hp-3478a: Set correct number of digits --- diff --git a/src/hardware/hp-3478a/protocol.c b/src/hardware/hp-3478a/protocol.c index 265889c6..ce29f6ae 100644 --- a/src/hardware/hp-3478a/protocol.c +++ b/src/hardware/hp-3478a/protocol.c @@ -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) */ 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) { - devc->spec_digits = 4; + devc->spec_digits = 5; } else if ((function_byte & SB1_DIGITS_BLOCK) == DIGITS_3_5) { - devc->spec_digits = 3; + devc->spec_digits = 4; } /* Function + Range */