From: David Sastre Medina Date: Sat, 21 Mar 2020 14:22:28 +0000 (+0100) Subject: korad-kaxxxxp: Add a new ID for KORAD KA3005P V4.2 power supply X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7415217edecb7bf1c47c58695e132bde8f0079f9;p=libsigrok.git 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. --- diff --git a/src/hardware/korad-kaxxxxp/api.c b/src/hardware/korad-kaxxxxp/api.c index c3f1f7da..16437a25 100644 --- a/src/hardware/korad-kaxxxxp/api.c +++ b/src/hardware/korad-kaxxxxp/api.c @@ -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", diff --git a/src/hardware/korad-kaxxxxp/protocol.h b/src/hardware/korad-kaxxxxp/protocol.h index 957b4e6b..b38fcfb7 100644 --- a/src/hardware/korad-kaxxxxp/protocol.h +++ b/src/hardware/korad-kaxxxxp/protocol.h @@ -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,