From 173867689a0b328947c12e45a863145ec20c7628 Mon Sep 17 00:00:00 2001
From: Andrey Nakin <andrey.nakin@gmail.com>
Date: 周一, 23 3月 2015 20:36:11 +0800
Subject: [PATCH] Merge branch 'master' of https://github.com/j123b567/scpi-parser

---
 examples/test-tcp/main.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/examples/test-tcp/main.c b/examples/test-tcp/main.c
index 2336165..6aa99aa 100644
--- a/examples/test-tcp/main.c
+++ b/examples/test-tcp/main.c
@@ -76,9 +76,12 @@
     return SCPI_RES_OK;
 }
 
+/**
+ * Return 0 as OK and other number as error
+ */
 scpi_result_t SCPI_Test(scpi_t * context) {
     fprintf(stderr, "**Test\r\n");
-    return SCPI_RES_OK;
+    return 0;
 }
 
 scpi_result_t SCPI_Reset(scpi_t * context) {

--
Gitblit v1.9.1