]> sigrok.org Git - libsigrok.git/commit - src/hardware/hp-3457a/api.c
hp-3457a: Implement AC, ACDC, and four-wire resistance modes
authorAlexandru Gagniuc <redacted>
Mon, 4 Apr 2016 01:38:53 +0000 (18:38 -0700)
committerUwe Hermann <redacted>
Sat, 23 Apr 2016 15:44:26 +0000 (17:44 +0200)
commit2c04f943efb4f7590941c44c27d8ca5d831b82dd
treeea935426eb2652c7641377a8ecff221c2319c946
parent6d5cd3bd383b293f16d4db0c91c366d939e4851b
hp-3457a: Implement AC, ACDC, and four-wire resistance modes

The driver did not look at the mq_flags provided with the
SR_CONF_MEASURED_QUANTITY key, and it defaulted to DC measurements.
Use the second member of the tuple provided by the config key, which
represents the flags for the measurement, and set the instrument's
measurement mode accordingly.
src/hardware/hp-3457a/api.c
src/hardware/hp-3457a/protocol.c
src/hardware/hp-3457a/protocol.h