From ed07df16da675c4c123e02a996822daf13d69c63 Mon Sep 17 00:00:00 2001 From: lhoerl <coder@lolux.de> Date: 周一, 03 8月 2015 22:42:07 +0800 Subject: [PATCH] added full SCPI error messages added list for device dependent error messages some minor changes to get rid of compiler warnings added support for Keil ARM compiler added support for National Instruments CVI compiler removed bug if(c = '\0')... --- libscpi/src/minimal.c | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/libscpi/src/minimal.c b/libscpi/src/minimal.c index eab2624..6727008 100644 --- a/libscpi/src/minimal.c +++ b/libscpi/src/minimal.c @@ -67,7 +67,7 @@ * @return */ scpi_result_t SCPI_SystemVersionQ(scpi_t * context) { - SCPI_ResultText(context, SCPI_DEV_VERSION); + SCPI_ResultMnemonic(context, SCPI_STD_VERSION_REVISION); return SCPI_RES_OK; } @@ -129,11 +129,10 @@ * @return */ scpi_result_t SCPI_StatusQuestionableEnable(scpi_t * context) { - scpi_parameter_t parameter; - if (SCPI_Parameter(context, ¶meter, TRUE)) { - SCPI_RegSet(context, SCPI_REG_QUESE, SCPI_ParamGetIntVal(context, ¶meter)); + int32_t new_QUESE; + if (SCPI_ParamInt(context, &new_QUESE, TRUE)) { + SCPI_RegSet(context, SCPI_REG_QUESE, new_QUESE); } - return SCPI_RES_OK; } -- Gitblit v1.9.1