]> sigrok.org Git - libsigrok.git/commit
korad-kaxxxxp: prepare more versatile ID response text checks
authorGerhard Sittig <redacted>
Thu, 15 Sep 2022 20:34:02 +0000 (22:34 +0200)
committerGerhard Sittig <redacted>
Sat, 17 Sep 2022 09:24:44 +0000 (11:24 +0200)
commit551024f26f62cdea8eef1b787fbef31e1b58c466
tree698cbdb8ea65d052a9db406a52e92b2b83020322
parent942afb5abe9815ecac42f95167982a61aae2cb8a
korad-kaxxxxp: prepare more versatile ID response text checks

Add more quirks for IDN responses: Some devices would not report the
vendor in their response. Some devices suffer from trailing garbage.
Move IDN response text checks to a new model_matches() routine, stick
with the strcmp() implementation in this commit for compatibility.

This commit does not change the set of supported models, but prepares
the addition of more versatile IDN response checks in a future version.
src/hardware/korad-kaxxxxp/api.c
src/hardware/korad-kaxxxxp/protocol.h