]> sigrok.org Git - libsigrok.git/commit
es51919 lcr: unbreak channel setup after successful detection
authorGerhard Sittig <redacted>
Tue, 18 Oct 2016 18:35:23 +0000 (20:35 +0200)
committerUwe Hermann <redacted>
Wed, 2 Nov 2016 22:27:56 +0000 (23:27 +0100)
commit6b7e644e5c5ca8fd501303a812293a00d830cd32
treeb6ab5dd343c460c2010aa2560053665b462e4ddf
parente68c0eb4097e4a01d65c71f473a48c367e06609d
es51919 lcr: unbreak channel setup after successful detection

Commit 6bcb3ee8763bb introduced initial support for the Cyrustek ES51919
chipset. Its setup_channels() routine used to init a variable to assume
failure, then a loop added channels and changed the value to success.

Commit 5e23fcab889c6 changed channel setup to never fail, but kept the
initialization with an error code. Which prevented the operation of
successfully detected LCR meters.

Remove the no longer needed variable, instead always return success from
an operation which cannot fail.

Fixes: 5e23fcab889c6 "Simplify channel creation."
Signed-off-by: Gerhard Sittig <redacted>
src/lcr/es51919.c