]> sigrok.org Git - libsigrok.git/commit
lsr/es51919: support channel selection (enable/disable P1/P2)
authorGerhard Sittig <redacted>
Fri, 18 Aug 2017 19:11:05 +0000 (21:11 +0200)
committerUwe Hermann <redacted>
Sat, 19 Aug 2017 17:21:53 +0000 (19:21 +0200)
commit503519b70a2644851807a7a403f980443d47ac44
tree54a24e72565a64e7f92d105f0ae7157ae5951563
parent12788e7e40b53732bc05904b34faabda39b47f02
lsr/es51919: support channel selection (enable/disable P1/P2)

Upon reception of serial data from the ES51919 LCR chipset, the data for
channels P1 and P2 was extracted from the packet, and unconditionally got
sent to the sigrok session.

Do check the channels' enabled state before submission. This fixes for
serial-lcr what recently got reported for a Brymen DMM. Tested with

  $ sigrok-cli -d peaktech-2170:conn=/dev/ttyUSB0 --channels P2

and other --channels specifications.
src/lcr/es51919.c