summaryrefslogtreecommitdiff
path: root/parser.c
diff options
context:
space:
mode:
authorroot <root@avtech.domain.avtechpulse.com>1970-01-01 09:58:18 +0900
committerroot <root@avtech.domain.avtechpulse.com>1970-01-01 09:58:18 +0900
commit24d869fedc663c81bce9ae4c47be5da9bcf5a4d2 (patch)
treefe60567e41ce49825f181f7d7cfb77e848d2939b /parser.c
parentb3b9289e331287a6869fd4a91df62c479f30508c (diff)
accept user int parameters in floating format for scpi compliance
Diffstat (limited to 'parser.c')
-rw-r--r--parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser.c b/parser.c
index 39f6fe2..7794463 100644
--- a/parser.c
+++ b/parser.c
@@ -1581,7 +1581,7 @@ static int process_int_param (char *parameter, int *value, int item_count, int *
min_val = valid_nums[0];
max_val = valid_nums[item_count - 1];
- if (String_is_it_pos_neg_int(parameter)) {
+ if (String_is_it_numeric(parameter)) {
*value = atoi(parameter);
int i;
for (i = 0; (i < item_count) && (is_valid == 0); i++) {
@@ -1612,7 +1612,7 @@ static int process_int_range (char *parameter, int *value, int min_val, int max_
int status;
status = OK;
- if (String_is_it_pos_neg_int(parameter)) {
+ if (String_is_it_numeric(parameter)) {
*value = atoi(parameter);
if ((*value<min_val) || (*value>max_val)) {
status = OutOfRange;