]> sigrok.org Git - libsigrok.git/commit
korad-kaxxxxp: support optional version after fixed ID response text
authorGerhard Sittig <redacted>
Fri, 16 Sep 2022 08:03:30 +0000 (10:03 +0200)
committerGerhard Sittig <redacted>
Sat, 17 Sep 2022 09:24:49 +0000 (11:24 +0200)
commit0f96d9bc50555adf662904230e6ef860b0baad12
treedd30bbea8acfdcf669e88adcf9f7c9f49a792011
parentd241cc20bd476712806a36ee2838670434ce1d32
korad-kaxxxxp: support optional version after fixed ID response text

The combination of a literal expected ID response, and an optionally
trailing version information that need not be part of the driver's
strict expectation, would be useful to handle the RND devices' prefix.

Extend the "strict ID response text check", accept an optional version
text before checking for exhausted input. This commit only introduces
the support code, does not change the set of supported models.
src/hardware/korad-kaxxxxp/api.c
src/hardware/korad-kaxxxxp/protocol.h