]> sigrok.org Git - libsigrok.git/commitdiff
scpi: Rephrase length logic in data block reception, comment/group code
authorGerhard Sittig <redacted>
Fri, 30 Dec 2016 12:27:29 +0000 (13:27 +0100)
committerUwe Hermann <redacted>
Sat, 7 Jan 2017 14:51:47 +0000 (15:51 +0100)
Slightly rephrase the SCPI code which parses the responses that carry
(binary) data blocks. Be explicit about NUL termination when parsing the
leading length spec in the response, obsoleting the array initializer.
Add lots of comments and group source code lines to better reflect
what's happening from the protocol's perspective.

Fix the returned error code in the path which reads responses of
excessive length in chunks. The previous implementation detected errors
but always returned code 0 (success).


No differences found