From af4e630a29e8ddcb11f377d3b0e6f6d580040313 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周五, 12 12月 2014 17:50:29 +0800 Subject: [PATCH] Parser refactoring --- libscpi/src/minimal.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libscpi/src/minimal.c b/libscpi/src/minimal.c index c133fe6..304658a 100644 --- a/libscpi/src/minimal.c +++ b/libscpi/src/minimal.c @@ -57,7 +57,7 @@ * @return */ scpi_result_t SCPI_StubQ(scpi_t * context) { - SCPI_ResultString(context, ""); + SCPI_ResultInt(context, 0); return SCPI_RES_OK; } @@ -67,7 +67,7 @@ * @return */ scpi_result_t SCPI_SystemVersionQ(scpi_t * context) { - SCPI_ResultString(context, SCPI_DEV_VERSION); + SCPI_ResultText(context, SCPI_STD_VERSION_REVISION); return SCPI_RES_OK; } @@ -102,10 +102,10 @@ * @return */ scpi_result_t SCPI_StatusQuestionableEventQ(scpi_t * context) { - // return value + /* return value */ SCPI_ResultInt(context, SCPI_RegGet(context, SCPI_REG_QUES)); - // clear register + /* clear register */ SCPI_RegSet(context, SCPI_REG_QUES, 0); return SCPI_RES_OK; @@ -117,7 +117,7 @@ * @return */ scpi_result_t SCPI_StatusQuestionableEnableQ(scpi_t * context) { - // return value + /* return value */ SCPI_ResultInt(context, SCPI_RegGet(context, SCPI_REG_QUESE)); return SCPI_RES_OK; @@ -142,7 +142,7 @@ * @return */ scpi_result_t SCPI_StatusPreset(scpi_t * context) { - // clear STATUS:... + /* clear STATUS:... */ SCPI_RegSet(context, SCPI_REG_QUES, 0); return SCPI_RES_OK; } -- Gitblit v1.9.1