]> sigrok.org Git - libsigrok.git/commit
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)
commit055804e89ea0f6b4145040a0eeb2f4e6951692fe
treec39b93888d64028f5ca398ed27ac9bdaeee57847
parent66836720f73c12fb107aa28b79cc6420c721cc5d
spci: Terminate all commands with a linefeed for all transports

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.
src/scpi/scpi.c
src/scpi/scpi_serial.c
src/scpi/scpi_tcp.c
src/scpi/scpi_visa.c
src/scpi/scpi_vxi.c