From 932061c92277c46278b2b4027e1fdb873e1bc19b Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周二, 04 12月 2012 18:28:17 +0800
Subject: [PATCH] Update README - file structure

---
 test-parser.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/test-parser.c b/test-parser.c
index e3ebde6..6cc8b6c 100644
--- a/test-parser.c
+++ b/test-parser.c
@@ -61,7 +61,7 @@
     return SCPI_RES_OK;
 }
 
-static scpi_command_t scpi_commands[] = {
+static const scpi_command_t scpi_commands[] = {
     /* IEEE Mandated Commands (SCPI std V1999.0 4.1.1) */
     { .pattern = "*CLS", .callback = SCPI_CoreCls,},
     { .pattern = "*ESE", .callback = SCPI_CoreEse,},
@@ -152,6 +152,8 @@
     },
     .interface = &scpi_interface,
     .registers = scpi_regs,
+    .units = scpi_units_def,
+    .special_numbers = scpi_special_numbers_def,
 };
 
 /*
@@ -194,7 +196,7 @@
     TEST_SCPI_INPUT("meas:volt:dc? 0.00001\r\n");
 
 
-    //printf("%.*s %s\r\n",  3, "asdadasdasdasdas", SCPI_RES_ERR"b");
+    //printf("%.*s %s\r\n",  3, "asdadasdasdasdas", "b");
     // interactive demo
     //char smbuffer[10];
     //while (1) {

--
Gitblit v1.9.1