]> sigrok.org Git - libsigrok.git/commit
fluke-dmm: reduce indentation in 18x/190/28x dispatch logic
authorGerhard Sittig <redacted>
Fri, 17 Mar 2023 14:13:15 +0000 (15:13 +0100)
committerGerhard Sittig <redacted>
Sun, 19 Mar 2023 10:42:03 +0000 (11:42 +0100)
commitebf6aa306f5993252abb78787502b20134e1593c
tree4aab2cc8118360d2a2dbe2bc12d0ec6f0e727801
parente7f803f3e0bc0e984354e40b9d1982011dee7cd4
fluke-dmm: reduce indentation in 18x/190/28x dispatch logic

Address several style nits in the fluke-dmm driver. Rephrase a lengthy
if-else-if sequence by means of switch-case, so that conditions are
easier to review. Use glib to get the vector length. Handle the trivial
case first, which reduces indentation for the remaining complex logic.
Fixup comment style, break long text lines.
src/hardware/fluke-dmm/protocol.c