]> sigrok.org Git - libsigrok.git/commit
rdtech-tc: avoid mixing several iterations in the same for loop
authorGerhard Sittig <redacted>
Thu, 16 Mar 2023 02:31:12 +0000 (03:31 +0100)
committerGerhard Sittig <redacted>
Thu, 16 Mar 2023 13:29:30 +0000 (14:29 +0100)
commit9e0333f04c09b0dc92920ae02c279b9bf003fa68
treef1fb5d417b4abb23ed6f4b8f6aa0ffe806215bc4
parent63f46e3e6f1b3b0a20a1da45ad10a1cd0a8937ab
rdtech-tc: avoid mixing several iterations in the same for loop

Separate the iteration of a channels list, and indexing their associated
binary helpers descriptions. Use the for() statement for list iteration
exclusively, avoid the comma operator.
src/hardware/rdtech-tc/protocol.c