]> sigrok.org Git - libsigrok.git/commit
scpi-dmm: run OPC queries immediately before essential commands
authorGerhard Sittig <redacted>
Sat, 17 Nov 2018 18:51:31 +0000 (19:51 +0100)
committerGerhard Sittig <redacted>
Sat, 17 Nov 2018 19:19:13 +0000 (20:19 +0100)
commit2887799404414cd967ae46fe0cf1712c0c033864
tree46e57acb4bee2dc608475c58d3168d139a76bf97
parent08f3b427b620a7a0308b0ee2e61f443a00f3d49c
scpi-dmm: run OPC queries immediately before essential commands

The current implementation of the SCPI DMM driver is conservative about
checking the device's being operational, but the *OPC? queries are found
in unfortunate locations. Run the OPC query right before running the
next "actual" command, not afterwards. And certainly not between sending
requests and potentially gathering responses in subsequent calls.

This commit does not change current behaviour, but improves maintenance
before pending commits.
src/hardware/scpi-dmm/api.c
src/hardware/scpi-dmm/protocol.c