]> sigrok.org Git - libsigrok.git/commitdiff
korad-kaxxxxp: use ID text prefix with optional version for RND models
authorGerhard Sittig <redacted>
Fri, 16 Sep 2022 08:07:14 +0000 (10:07 +0200)
committerGerhard Sittig <redacted>
Sat, 17 Sep 2022 09:24:50 +0000 (11:24 +0200)
This allows to match the "320-KA3005P" response text, and present the
"KA3005P" model name to users without the "320-" prefix.

src/hardware/korad-kaxxxxp/api.c

index d8215c605535fa687cec7341492b3916dc0acb2b..d04152af55bfb18de2851b8039a34fc97bd02784 100644 (file)
@@ -61,8 +61,10 @@ static const struct korad_kaxxxxp_model models[] = {
                KORAD_QUIRK_ID_TRAILING},
        {"Korad", "KD3005P", "", 1, volts_30, amps_5, 0},
        {"Korad", "KD6005P", "", 1, volts_60, amps_5, 0},
-       {"RND", "320-KA3005P", "", 1, volts_30, amps_5, 0},
-       {"RND", "320-KD3005P", "", 1, volts_30, amps_5, 0},
+       {"RND", "KA3005P", "RND 320-KA3005P", 1, volts_30, amps_5,
+               KORAD_QUIRK_ID_OPT_VERSION},
+       {"RND", "KD3005P", "RND 320-KD3005P", 1, volts_30, amps_5,
+               KORAD_QUIRK_ID_OPT_VERSION},
        {"Stamos Soldering", "S-LS-31", "", 1, volts_30, amps_5,
                KORAD_QUIRK_ID_NO_VENDOR},
        {"Tenma", "72-2535", "", 1, volts_30, amps_3, 0},