]> sigrok.org Git - libsigrok.git/commit
sr_dev_open(): Factor out SR_ST_ACTIVE check.
authorUwe Hermann <redacted>
Fri, 7 Jul 2017 19:11:56 +0000 (21:11 +0200)
committerUwe Hermann <redacted>
Sat, 8 Jul 2017 12:25:23 +0000 (14:25 +0200)
commit6402c379161ec138e451901c411817a55846a75b
tree9a42f4ecf0d1dacf9d004287ca764e1bc2be3618
parent093e1cba6b7bf14cfb77fa36f59b0c16e6fca7cc
sr_dev_open(): Factor out SR_ST_ACTIVE check.

This ensures consistent checks and log messages across all drivers
and reduces the per-driver boilerplate.
16 files changed:
src/device.c
src/hardware/dreamsourcelab-dslogic/protocol.c
src/hardware/fx2lafw/protocol.c
src/hardware/hameg-hmo/api.c
src/hardware/hantek-6xxx/protocol.c
src/hardware/hantek-dso/protocol.c
src/hardware/hung-chang-dso-2100/api.c
src/hardware/lecroy-logicstudio/api.c
src/hardware/lecroy-xstream/api.c
src/hardware/pipistrello-ols/api.c
src/hardware/rohde-schwarz-sme-0x/api.c
src/hardware/saleae-logic16/api.c
src/hardware/scpi-pps/api.c
src/hardware/sysclk-lwla/api.c
src/hardware/testo/protocol.c
src/hardware/yokogawa-dlm/api.c