]> sigrok.org Git - libsigrok.git/commit
korad-kaxxxxp: eliminate numeric model ID (table index) in scan
authorGerhard Sittig <redacted>
Thu, 15 Sep 2022 20:18:42 +0000 (22:18 +0200)
committerGerhard Sittig <redacted>
Sat, 17 Sep 2022 09:24:41 +0000 (11:24 +0200)
commit5255f85613e08b9bf1710345b82214e96f57d8eb
treed9507d3702b17278ec44c0fef2e9a0ad328de12d
parent77e6749af13d79ad71fd3d7ddc209a1e6d5ee52a
korad-kaxxxxp: eliminate numeric model ID (table index) in scan

Rephrase the successful lookup of a supported model by means of a
pointer to a models[] entry. Which eliminates the numeric index,
including the "sentinel" value which points outside of the table.

Use a signed integer for iteration over table items. Don't break
text lines between vendor and model fields, these fields form a
logical group from the user's perspective.
src/hardware/korad-kaxxxxp/api.c