]> sigrok.org Git - libsigrok.git/commit - src/hardware/kingst-la2016/api.c
kingst-la2016: unobfuscate "user specified threshold" reference
authorGerhard Sittig <redacted>
Sat, 22 Jan 2022 10:13:18 +0000 (11:13 +0100)
committerGerhard Sittig <redacted>
Sun, 6 Feb 2022 17:53:53 +0000 (18:53 +0100)
commitda2cb50d7311fe66a50169e33ee1be9f7b901709
tree770604fd5eb02d9987d6841886b4b0f42ac2fe75
parent852c7d1483a02e0937b7a7ce0936df17692bac34
kingst-la2016: unobfuscate "user specified threshold" reference

Use a symbolic name for the "user specified input threshold" item's
position in the set of choices. Stick with array size for the complete
list of items instead of hiding the size behind an unrelated name. This
improves readability of the config get/set/list routines. Trim a text
line length while we are here.

The single variable for several purposes (user specified value, and
fixed value derived from currently selected choice out of a premade
set) still looks suspicious, and is not addressed in this commit.
src/hardware/kingst-la2016/api.c