From d6f4a5106bebb23826c0867494ade7f4d7ebd1f3 Mon Sep 17 00:00:00 2001 From: Jan Breuer <jan.breuer@jaybee.cz> Date: 周日, 18 1月 2015 19:40:33 +0800 Subject: [PATCH] Correct *TST? callback in header file --- libscpi/src/ieee488.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libscpi/src/ieee488.c b/libscpi/src/ieee488.c index ab62b56..7b9bd9c 100644 --- a/libscpi/src/ieee488.c +++ b/libscpi/src/ieee488.c @@ -98,7 +98,7 @@ * @param val - new value */ void SCPI_RegSet(scpi_t * context, scpi_reg_name_t name, scpi_reg_val_t val) { - bool_t srq = FALSE; + scpi_bool_t srq = FALSE; scpi_reg_val_t mask; scpi_reg_val_t old_val; @@ -210,9 +210,9 @@ * @return */ scpi_result_t SCPI_CoreEse(scpi_t * context) { - scpi_parameter_t parameter; - if (SCPI_Parameter(context, ¶meter, TRUE)) { - SCPI_RegSet(context, SCPI_REG_ESE, SCPI_ParamGetIntVal(context, ¶meter)); + int32_t new_ESE; + if (SCPI_ParamInt(context, &new_ESE, TRUE)) { + SCPI_RegSet(context, SCPI_REG_ESE, new_ESE); } return SCPI_RES_OK; } @@ -296,9 +296,9 @@ * @return */ scpi_result_t SCPI_CoreSre(scpi_t * context) { - scpi_parameter_t parameter; - if (SCPI_Parameter(context, ¶meter, TRUE)) { - SCPI_RegSet(context, SCPI_REG_SRE, SCPI_ParamGetIntVal(context, ¶meter)); + int32_t new_SRE; + if (SCPI_ParamInt(context, &new_SRE, TRUE)) { + SCPI_RegSet(context, SCPI_REG_SRE, new_SRE); } return SCPI_RES_OK; } -- Gitblit v1.9.1