changeset 53:57e2e88aadb9

Remove unused variable
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Wed, 10 Oct 2012 18:17:30 +0200
parents 30146cc6cd77
children 73e23c879d6e
files FXAnalyse.c
diffstat 1 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/FXAnalyse.c	Wed Oct 10 18:16:02 2012 +0200
+++ b/FXAnalyse.c	Wed Oct 10 18:17:30 2012 +0200
@@ -104,7 +104,6 @@
 
 int SlopeMeasuring = FALSE;
 int AutoStopSlopeCancellingIfDelock = TRUE;
-int OnSlopeCancelling = FALSE;
 double SlopeMath2 = 0.0; // currently applied frequency dedrifiting slope
 double TimetoSlope = 60.0;
 double SlopeMeasuringTimeBegin = 0.0;
@@ -1226,7 +1225,7 @@
 					if ((utc - SlopeMeasuringTimeBegin) > TimetoSlope) {
 						
 						Nratio = Nratio + 1;
-						if Nratio >= 1
+						if (Nratio >= 1)
 							MoyMath2 = MoyMath2 + Moy_Math2slope;
 						
 						if (invertSlopeSign)
@@ -1244,8 +1243,6 @@
 							CenterFrequencyCh2ToDetermine = FALSE;
 						}
 						
-						OnSlopeCancelling = TRUE;
-						
 						if (Nratio == ratio) {
 							if (FrequCorrec == TRUE) {
 								SlopeCorrection = (MoyMath2/ratio-CenterFrequencyCh2)/TimetoSlope;
@@ -1288,10 +1285,8 @@
 									if (KeepFrequ)
 										frequency = DDSFox_ReadFreq(&DDS1xAD9956);
 									
-									if (! KeepSlope) {
+									if (! KeepSlope)
 										SlopeMath2 = 0.0;
-										OnSlopeCancelling = FALSE;
-									}
 									
 									SetCtrlVal(MainPanel, PANEL_SLOPETOCANCEL, SlopeMath2);
 									DDSFox_Set(&DDS1xAD9956, frequency, SlopeMath2);
@@ -2291,7 +2286,6 @@
 			MoyMath2 = 0.0;
 			Nratio = -1;
 			CenterFrequencyCh2ToDetermine = TRUE ;
-			OnSlopeCancelling = FALSE;
 			SlopeMath2 = 0.0; 
 			SetCtrlVal(panel, PANEL_SLOPETOCANCEL, SlopeMath2);
 			DDSFox_Set(&DDS1xAD9956, DEDRIFT_DDS_FREQUENCY, SlopeMath2);