]> sigrok.org Git - libsigrok.git/commitdiff
input/csv: expand cleanup (resource release) and unbreak file reload
authorGerhard Sittig <redacted>
Sat, 19 Oct 2019 14:09:15 +0000 (16:09 +0200)
committerGerhard Sittig <redacted>
Sat, 21 Dec 2019 17:20:04 +0000 (18:20 +0100)
The list of previously created channels is kept across file reloads. We
also need to keep (or re-create) the list of channels that are used for
datafeed submission of analog data.

Release more allocated resources in the .cleanup() routine, and do reset
internal state such that a .reset() thus .cleanup() then .receive() call
sequence will work. This code path is taken for re-import of files (see
bug #1241, CSV was affected).


No differences found