]> sigrok.org Git - libsigrok.git/commit - src/hardware/korad-kaxxxxp/protocol.h
korad-kaxxxxp: Add workaround for a Korad KA3005P issue.
authorUwe Hermann <redacted>
Fri, 25 Dec 2015 22:20:00 +0000 (23:20 +0100)
committerUwe Hermann <redacted>
Fri, 25 Dec 2015 22:29:35 +0000 (23:29 +0100)
commita078d3ec527c0a8180f59086e62a8905ae79aa65
treea9ea327897a911dd1251a49038fe14850f1c5dc0
parentae9ca5b1df8137083e37588665f7322306346420
korad-kaxxxxp: Add workaround for a Korad KA3005P issue.

In some situations, the reply to the *IDN? command contains an
additional trailing 0x01 byte for unknown reasons.

This issue seems to be reproducible by changing the voltage using the knobs
on the device, then turning on the output and turning it off again.

The next korad-kaxxxxp scan() operation would contain the trailing 0x01
byte, which would lead to the detection of the device in libsigrok no
longer working until the next power-cycle.

Work around this issue by treating both the ID string with and without
the trailing 0x01 byte as valid.
src/hardware/korad-kaxxxxp/api.c
src/hardware/korad-kaxxxxp/protocol.h