]> sigrok.org Git - libsigrok.git/commit
sysclk-lwla: Clean up open/closed state handling
authorDaniel Elstner <redacted>
Wed, 16 Sep 2015 19:31:42 +0000 (21:31 +0200)
committerDaniel Elstner <redacted>
Wed, 16 Sep 2015 21:37:58 +0000 (23:37 +0200)
commitc81069b33760f6de36466410ad4bbc9cb762e938
tree2a58e2ef8ce7385879f6017cc0d5cf75beb17878
parent225d3cb0c52fc3df5b26fec94d3b3d2de796a41c
sysclk-lwla: Clean up open/closed state handling

Use states SR_ST_ACTIVE and SR_ST_INACTIVE to indicate that the
device is open or closed, respectively. Do not use any of the
other state values. Improve the robustness of the open and close
methods in face of errors. Introduce a separate flag to indicate
that a running acquisition should be canceled.
src/hardware/sysclk-lwla/api.c
src/hardware/sysclk-lwla/protocol.c
src/hardware/sysclk-lwla/protocol.h