]> sigrok.org Git - libsigrok.git/commit
scpi: Fix incomplete data issue for e.g. Hameg HMO1024.
authorMathias Katzer <redacted>
Sun, 11 Jan 2015 00:40:28 +0000 (01:40 +0100)
committerUwe Hermann <redacted>
Sun, 11 Jan 2015 00:43:13 +0000 (01:43 +0100)
commit3b95bd9152e6f54e259caf0909af86768c518e7a
treed6cbbaeca756b80f2479380443eb2d30880336bf
parentf62f595bfc730070fbf95f7a75c45aef9622fdd4
scpi: Fix incomplete data issue for e.g. Hameg HMO1024.

On a Hameg HMO1024 you get incomplete data because the USB transfer takes
longer than the scpi->read_timeout_ms of 1 second that is defined in
scpi_dev_inst_new(). Therefore reset the timeout in sr_scpi_get_string()
whenever the device sends a partial response.
src/scpi/scpi.c