]> sigrok.org Git - libsigrok.git/commit
korad-kaxxxxp: Add a new ID for KORAD KA3005P V4.2 power supply
authorDavid Sastre Medina <redacted>
Sat, 21 Mar 2020 14:22:28 +0000 (15:22 +0100)
committerUwe Hermann <redacted>
Sun, 22 Mar 2020 14:52:16 +0000 (15:52 +0100)
commit7415217edecb7bf1c47c58695e132bde8f0079f9
tree56b86afad32f677f60b0b0a21ceec67164f6f171
parentc4a46475a64c18eabc7f1d039045c7e03ccb0d01
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.
src/hardware/korad-kaxxxxp/api.c
src/hardware/korad-kaxxxxp/protocol.h