korad-kaxxxxp: Add a new ID for KORAD KA3005P V4.2 power supply

On a recently acquired Korad KA3005P power supply, the ID supplied by the
device is not known by libsigrok.

$ sigrok-cli --driver=korad-kaxxxxp:conn=/dev/ttyACM0 --scan
sr: korad-kaxxxxp: Unknown model ID 'KORAD KA3005P V4.2' detected, aborting.

This fixes bug #1522.

Thanks to bitaround@gmail.com for the amperage fix.
This commit is contained in:
David Sastre Medina 2020-03-21 15:22:28 +01:00 committed by Uwe Hermann
parent c4a46475a6
commit 7415217ede
2 changed files with 3 additions and 0 deletions

View File

@ -58,6 +58,8 @@ static const struct korad_kaxxxxp_model models[] = {
/* Sometimes the KA3005P has an extra 0xBC after the ID. */
{KORAD_KA3005P_0XBC, "Korad", "KA3005P",
"KORADKA3005PV2.0\xBC", 1, {0, 31, 0.01}, {0, 5, 0.001}},
{KORAD_KA3005P_V42, "Korad", "KA3005P",
"KORAD KA3005P V4.2", 1, {0, 31, 0.01}, {0, 5.1, 0.001}},
{KORAD_KD3005P, "Korad", "KD3005P",
"KORAD KD3005P V2.0", 1, {0, 31, 0.01}, {0, 5, 0.001}},
{KORAD_KD3005P_V20_NOSP, "Korad", "KD3005P",

View File

@ -37,6 +37,7 @@ enum {
KORAD_KA3005P,
KORAD_KA3005P_0X01,
KORAD_KA3005P_0XBC,
KORAD_KA3005P_V42,
KORAD_KD3005P,
KORAD_KD3005P_V20_NOSP,
RND_320_KD3005P,