From 9ed3ff990b0d69a6bed4eb26c82aad8b232e850a Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 摹曛, 26 11月 2015 03:34:54 +0800
Subject: [PATCH] Remove default IDN result

---
 libscpi/src/parser.c         |   13 -------------
 libscpi/inc/scpi/constants.h |    8 --------
 2 files changed, 0 insertions(+), 21 deletions(-)

diff --git a/libscpi/inc/scpi/constants.h b/libscpi/inc/scpi/constants.h
index ef39a4a..61cd9a6 100644
--- a/libscpi/inc/scpi/constants.h
+++ b/libscpi/inc/scpi/constants.h
@@ -41,14 +41,6 @@
 extern "C" {
 #endif
 
-
-    /*  4.1.3.6 *IDN? */
-
-#define SCPI_DEFAULT_1_MANUFACTURE "CTU FEE"
-#define SCPI_DEFAULT_2_MODEL "TSI3225"
-#define SCPI_DEFAULT_3 "0"
-#define SCPI_DEFAULT_4_REVISION "01-01"
-
     /* 21.21 :VERSion? 
      * YYYY.V
      * YYYY = SCPI year
diff --git a/libscpi/src/parser.c b/libscpi/src/parser.c
index 0552420..70187f3 100644
--- a/libscpi/src/parser.c
+++ b/libscpi/src/parser.c
@@ -247,19 +247,6 @@
  * @param interface
  */
 void SCPI_Init(scpi_t * context) {
-    if (context->idn[0] == NULL) {
-        context->idn[0] = SCPI_DEFAULT_1_MANUFACTURE;
-    }
-    if (context->idn[1] == NULL) {
-        context->idn[1] = SCPI_DEFAULT_2_MODEL;
-    }
-    if (context->idn[2] == NULL) {
-        context->idn[2] = SCPI_DEFAULT_3;
-    }
-    if (context->idn[3] == NULL) {
-        context->idn[3] = SCPI_DEFAULT_4_REVISION;
-    }
-
     context->buffer.position = 0;
     SCPI_ErrorInit(context);
 }

--
Gitblit v1.9.1