]> sigrok.org Git - libsigrok.git/commit
scpi_serial: Rephrase NL and NL+CR line termination check.
authorGerhard Sittig <redacted>
Mon, 17 Aug 2020 16:48:50 +0000 (18:48 +0200)
committerGerhard Sittig <redacted>
Mon, 17 Aug 2020 16:48:50 +0000 (18:48 +0200)
commit6dc0007c7152b9dc3af49f85f0c33b31813c72a6
tree370becb58ab37775f323179aa4ea42657161bcd5
parent4e5ff004d827af1e0bb5b569749e3653e2550f1a
scpi_serial: Rephrase NL and NL+CR line termination check.

Rearrange the check for line termination in SCPI receive data, and add a
comment in that spot. Keep related conditions together, avoid line breaks
for complex terms. This shall simplify review, and raise awareness during
maintenance. This change amends commit a0ade2f933d6.
src/scpi/scpi_serial.c