# HG changeset patch # User Daniele Nicolodi # Date 1349885850 -7200 # Node ID 57e2e88aadb98526eff34742f58eb44e47e90ee5 # Parent 30146cc6cd77262362a78de34c1483924dc9c300 Remove unused variable diff -r 30146cc6cd77 -r 57e2e88aadb9 FXAnalyse.c --- 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);