# HG changeset patch # User Daniele Nicolodi # Date 1349949572 -7200 # Node ID 54add101fdca53307e549180f22cc6c285c52ebe # Parent 73e23c879d6e106dc8e2756d8d8cc850dc7f97ca Cleanup. Remove unnecessary global variable diff -r 73e23c879d6e -r 54add101fdca FXAnalyse.c --- 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;