]> sigrok.org Git - libsigrok.git/commit
hameg-hmo: Make sure the enabled_channels list is empty before populating it
authorSoeren Apel <redacted>
Wed, 13 Aug 2014 14:33:38 +0000 (16:33 +0200)
committerBert Vermeulen <redacted>
Thu, 14 Aug 2014 20:43:57 +0000 (22:43 +0200)
commitdb81fbb58261825e03aadaf20cff794e4c65401a
tree2c58048f91206aac88c6ada34feece7162d30ea7
parent3c1cafebb3773739866ab16f878eca47e0ede785
hameg-hmo: Make sure the enabled_channels list is empty before populating it

Previous runs of dev_acquisition_start() keep the enabled_channels list
populated if they fail. This means that once an invalid channel
configuration was detected, it will be detected again even if the channel
configuration was changed. With this change, the list will be cleared
before being populated so that any stale entries are removed.
src/hardware/hameg-hmo/api.c