diff FXAnalyse.c @ 55:54add101fdca

Cleanup. Remove unnecessary global variable
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Thu, 11 Oct 2012 11:59:32 +0200
parents 73e23c879d6e
children 6e73fb3d94fa
line wrap: on
line diff
--- a/FXAnalyse.c	Thu Oct 11 11:55:37 2012 +0200
+++ b/FXAnalyse.c	Thu Oct 11 11:59:32 2012 +0200
@@ -112,7 +112,6 @@
 int N_Math2slope=0.0,nstabilisationSlopeMeasuring=0;
 
 double LimitToDelock=5.0;
-double SlopeCorrection=0.0;
 double limitotakoff=70.0;
 
 int ratio=10; //Recentre la frequence tous les ratios
@@ -1246,8 +1245,8 @@
 						
 						if (Nratio == ratio) {
 							if (FrequCorrec == TRUE) {
-								SlopeCorrection = (MoyMath2/ratio-CenterFrequencyCh2)/TimetoSlope;
-								SlopeMath2 = SlopeMath2 + SlopeCorrection;
+								double correction = (MoyMath2/ratio-CenterFrequencyCh2)/TimetoSlope;
+								SlopeMath2 = SlopeMath2 + correction;
 							}
 							Nratio = 0;
 							MoyMath2 = 0.0;