From: Gerhard Sittig Date: Fri, 16 Sep 2022 08:07:14 +0000 (+0200) Subject: korad-kaxxxxp: use ID text prefix with optional version for RND models X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d32120c4c30650c30720d04eaf88dcf7b76a1e9f;p=libsigrok.git korad-kaxxxxp: use ID text prefix with optional version for RND models This allows to match the "320-KA3005P" response text, and present the "KA3005P" model name to users without the "320-" prefix. --- diff --git a/src/hardware/korad-kaxxxxp/api.c b/src/hardware/korad-kaxxxxp/api.c index d8215c60..d04152af 100644 --- a/src/hardware/korad-kaxxxxp/api.c +++ b/src/hardware/korad-kaxxxxp/api.c @@ -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},