From 1c02f18e5b718da36a5d78d29434fea282c67cc4 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周一, 21 10月 2013 18:13:17 +0800
Subject: [PATCH] Custom IDN; correct system:version?

---
 examples/common/scpi-def.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/examples/common/scpi-def.c b/examples/common/scpi-def.c
index 492ba8b..ea8be8a 100644
--- a/examples/common/scpi-def.c
+++ b/examples/common/scpi-def.c
@@ -100,13 +100,13 @@
 
 scpi_result_t TEST_ChoiceQ(scpi_t * context) {
 
-    size_t param;
+    int32_t param;
     
     if (!SCPI_ParamChoice(context, trigger_source, &param, true)) {
         return SCPI_RES_ERR;
     }
     
-    fprintf(stderr, "\tP1=%s (%u)\r\n", trigger_source[param], param);
+    fprintf(stderr, "\tP1=%s (%d)\r\n", trigger_source[param], param);
     
     SCPI_ResultInt(context, param);
 
@@ -193,4 +193,5 @@
     .registers = scpi_regs,
     .units = scpi_units_def,
     .special_numbers = scpi_special_numbers_def,
+    .idn = {"MANUFACTURE", "INSTR2013", NULL, "01-02"},
 };

--
Gitblit v1.9.1