]> sigrok.org Git - libsigrok.git/commit
rdtech-um: rephrase channel count in profile description
authorGerhard Sittig <redacted>
Wed, 15 Mar 2023 18:01:57 +0000 (19:01 +0100)
committerGerhard Sittig <redacted>
Thu, 16 Mar 2023 13:29:30 +0000 (14:29 +0100)
commit7cfa93b013341e1980461c4a56c8d8c0bca800c8
tree6fa10ac0d73056274fe9ed4b4da114a8d71b23fd
parentae33433bec2a5648fed05594810a9a2dca933586
rdtech-um: rephrase channel count in profile description

Use ARRAY_AND_SIZE() instead of the ALL_ZERO terminator for the list
of channels in a model's profile. This improves iteration readability,
avoids off-by-one issues, eliminates "empty slot?" checks in numerical
iteration over indices. Rename channel list identifiers to reduce the
text line length in the source code.
src/hardware/rdtech-um/api.c
src/hardware/rdtech-um/protocol.c
src/hardware/rdtech-um/protocol.h