]> sigrok.org Git - libsigrok.git/commitdiff
spci: Terminate all commands with a linefeed for all transports
authorStefan Brüns <redacted>
Sat, 16 Apr 2016 21:38:05 +0000 (23:38 +0200)
committerUwe Hermann <redacted>
Sat, 23 Apr 2016 15:08:50 +0000 (17:08 +0200)
While some transports add a terminating (carriagereturn+)linefeed
unconditionally, the USBTMC transport does not. At least the R&S HMO1002
requires the linefeed and locks up otherwise. Fixes bug #784.

This changes the TCP and VXI transport from CR+LF to LF only.

Also fixes a possible memory leak for VXI, where the temporary command
buffer was not freed in case of a write error.


No differences found