]> sigrok.org Git - libsigrok.git/commit - src/hardware/openbench-logic-sniffer/api.c
openbench-logic-sniffer: Avoid recreating event source
authorDaniel Elstner <redacted>
Sun, 1 Nov 2015 18:38:40 +0000 (19:38 +0100)
committerDaniel Elstner <redacted>
Sun, 1 Nov 2015 18:38:40 +0000 (19:38 +0100)
commit8105e82913aface2a430c51ef3e9a45cfce68170
tree2c51f367ece4a79bca6efbe8ed441e6b5e3f05e9
parentd09a82a8fe04f9554f99c5141dd9eb7552612156
openbench-logic-sniffer: Avoid recreating event source

With the current driver API and the corresponding session event
handling, it is not possible to destroy and then re-create an
event source with the same key within the same main loop iteration.

The next generation driver API will fix this problem. But for now,
just change the driver to make do without that sort of thing. Also
increase the I/O timeout to 100 ms to be safer in the event of all
kind of delays the OS environment may induce.

This fixes bug #678.
src/hardware/openbench-logic-sniffer/api.c
src/hardware/openbench-logic-sniffer/protocol.c