I got one *IDN? reply in IRC and here's patch for supporting real
Korad power supply.

Hannu
From 090f562639c01710094248ab6f7132bc0c89b617 Mon Sep 17 00:00:00 2001
From: Hannu Vuolasaho <vuokkose...@gmail.com>
Date: Wed, 25 Nov 2015 00:56:23 +0200
Subject: [PATCH] Support for Korad KA3005P

---
 src/hardware/korad-kdxxxxp/api.c      | 2 ++
 src/hardware/korad-kdxxxxp/protocol.h | 1 +
 2 files changed, 3 insertions(+)

diff --git a/src/hardware/korad-kdxxxxp/api.c b/src/hardware/korad-kdxxxxp/api.c
index c499d4b..8959e4f 100644
--- a/src/hardware/korad-kdxxxxp/api.c
+++ b/src/hardware/korad-kdxxxxp/api.c
@@ -52,6 +52,8 @@ static const struct korad_kdxxxxp_model models[] = {
 	/* Device enum, vendor, model, ID reply, channels, voltage, current */
 	{VELLEMAN_LABPS_3005D, "Velleman", "LABPS3005D",
 		"VELLEMANLABPS3005DV2.0", 1, {0, 31, 0.01}, {0, 5, 0.001}},
+	{KORAD_KA3005D, "Korad", "KA3005P",
+		"KORADKA3005PV2.0", 1, {0, 31, 0.01}, {0, 5, 0.001}},
 	{0, NULL, NULL, NULL, 0, {0, 0, 0}, {0, 0, 0}}
 };
 
diff --git a/src/hardware/korad-kdxxxxp/protocol.h b/src/hardware/korad-kdxxxxp/protocol.h
index a76b28b..85cc47b 100644
--- a/src/hardware/korad-kdxxxxp/protocol.h
+++ b/src/hardware/korad-kdxxxxp/protocol.h
@@ -38,6 +38,7 @@
 
 enum {
 	VELLEMAN_LABPS_3005D,
+	KORAD_KA3005D,
 	/* Support for future devices with this protocol. */
 };
 
-- 
2.6.2

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to