]> sigrok.org Git - libsigrok.git/commit
input/saleae: keep previous channels across cleanup() call
authorGerhard Sittig <redacted>
Wed, 26 Aug 2020 14:46:41 +0000 (16:46 +0200)
committerGerhard Sittig <redacted>
Wed, 26 Aug 2020 15:06:15 +0000 (17:06 +0200)
commit003ad0ab8cfaab20d3037d46c35ae63c7d2a2c42
tree749b163d3de173b037a695aaec5faae1d5c205df
parentf403cb9de9795bbbb9e295a0d3ca78c8dce5ff1a
input/saleae: keep previous channels across cleanup() call

The previous implementation of the cleanup() routine in the saleae input
module kept user specified options, but lost the previously created list
of sigrok channels. Keep it.

Also make sure that reset() voids the previous copy after grabbing its
value. To not unexpectedly release resources which still get referenced.

This shall unbreak file-reload.
src/input/saleae.c