summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2014-04-25 09:40:39 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2014-04-25 09:40:39 -0400
commit30bbec846aebe3a1262d53ef73de681ae6a65f3a (patch)
tree8c55e80a48db111c44d80716a75641782be4cc3f
parent8a93db1e9061255b0216b1369a9768827610d8dd (diff)
fixed improper returns in some calibration parser routines
-rw-r--r--parser.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/parser.c b/parser.c
index 0670fb6..63f0e57 100644
--- a/parser.c
+++ b/parser.c
@@ -2928,8 +2928,7 @@ static int Go_calib_amp_72(gchar** response, int channel, char *parameter,char *
return SyntaxError;
}
- Set_Amp_Calib(channel,atof(parameter)*cal_val);
-
+ return Set_Amp_Calib(channel,atof(parameter)*cal_val);
break;
default:
@@ -2966,8 +2965,7 @@ static int Go_calib_mon_73(gchar** response, int channel, char *parameter,char *
return SyntaxError;
}
- Set_Mon_Calib(channel,atof(parameter)*mon_val);
-
+ return Set_Mon_Calib(channel,atof(parameter)*mon_val);
break;
default:
@@ -3115,8 +3113,7 @@ static int Go_calib_os_76(gchar** response, int channel, char *parameter,char *u
return SyntaxError;
}
- Set_OS_Calib(channel,atof(parameter)*mon_val);
-
+ return Set_OS_Calib(channel,atof(parameter)*mon_val);
break;
default:
@@ -3375,7 +3372,7 @@ static int Go_dly_shift_82(gchar** response, int channel, char *parameter,char *
if (value>num_of_dly_shift_points || value<1) {
return IllegalParameter;
}
- Set_Dly_Shr_Nom(channel,value);
+ return Set_Dly_Shr_Nom(channel,value);
} else {
return SyntaxError;
}