From 30bbec846aebe3a1262d53ef73de681ae6a65f3a Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Fri, 25 Apr 2014 09:40:39 -0400 Subject: fixed improper returns in some calibration parser routines --- parser.c | 11 ++++------- 1 file 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; } -- cgit