Bug 825 - Missing number of significant digits in various drivers
Summary: Missing number of significant digits in various drivers
Status: CONFIRMED
Alias: None
Product: libsigrok
Classification: Unclassified
Component: Other (show other bugs)
Version: unreleased development snapshot
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-28 23:02 CEST by Aurélien Jacobs
Modified: 2016-08-29 00:35 CEST (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aurélien Jacobs 2016-08-28 23:02:01 CEST
The number of significant digits of the analog values returned by the drivers listed below is not properly specified resulting in incomplete output values.

analog.encoding->digits and analog.spec->spec_digits must be set to appropriate values depending on measurement mode and range.

Here are the drivers where digits still have to be specified:
- brymen-dmm
- fluke-dmm
- hameg-hmo
- norma-dmm
- testo
- yokogawa-dlm
Comment 1 Uwe Hermann 2016-08-29 00:35:25 CEST
The list of open TODOs can be grepped like this now:

$ grep -r "TODO: Use proper 'digits' value" *
src/hardware/hameg-hmo/protocol.c:              /* TODO: Use proper 'digits' value for this device (and its modes). */
src/hardware/hameg-hmo/protocol.c:              /* TODO: Use proper 'digits' value for this device (and its modes). */
src/hardware/brymen-dmm/protocol.c:     /* TODO: Use proper 'digits' value for this device (and its modes). */
src/hardware/norma-dmm/protocol.c:      /* TODO: Use proper 'digits' value for this device (and its modes). */
src/hardware/fluke-dmm/fluke.c: /* TODO: Use proper 'digits' value for this device (and its modes). */
src/hardware/fluke-dmm/fluke.c: /* TODO: Use proper 'digits' value for this device (and its modes). */
src/hardware/fluke-dmm/fluke.c: /* TODO: Use proper 'digits' value for this device (and its modes). */
src/hardware/testo/protocol.c:  /* TODO: Use proper 'digits' value for this device (and its modes). */
src/hardware/yokogawa-dlm/protocol.c:   /* TODO: Use proper 'digits' value for this device (and its modes). */
src/input/wav.c:        /* TODO: Use proper 'digits' value for this device (and its modes). */
src/session_driver.c:                   /* TODO: Use proper 'digits' value for this device (and its modes). */