changeset 54:73e23c879d6e

Do not update beatnote sign indicators at each time tick
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Thu, 11 Oct 2012 11:55:37 +0200
parents 57e2e88aadb9
children 54add101fdca
files FXAnalyse.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/FXAnalyse.c	Wed Oct 10 18:17:30 2012 +0200
+++ b/FXAnalyse.c	Thu Oct 11 11:55:37 2012 +0200
@@ -572,9 +572,7 @@
 				SetCtrlVal(MainPanel, PANEL_FREQ2, Ch2);
 				SetCtrlVal(MainPanel, PANEL_FREQ3, Ch3);  
 				SetCtrlVal(MainPanel, PANEL_FREQ4, Ch4);
-				SetCtrlVal(MainPanel, PANEL_SIGN1, Signe1);
-				SetCtrlVal(MainPanel, PANEL_SIGN2, Signe2);
-				SetCtrlVal(MainPanel, PANEL_SIGN3, Signe3);
+
 				SetCtrlVal(MainPanel, PANEL_CENTERFREQUENCY, CenterFrequencyCh2);
 				
 				// Treat data
@@ -1175,6 +1173,7 @@
 						SetCtrlVal(MainPanel, PANEL_DDS1, Frequency1); 
 						DDS4xAD9912_SetFrequency(&DDS4xAD9912, 1, Frequency1);
 						Getsign1 = FALSE;
+						SetCtrlVal(MainPanel, PANEL_SIGN1, Signe1);
 					}
 				}
 				if (Getsign2 == TRUE) {
@@ -1193,6 +1192,7 @@
 						SetCtrlVal(MainPanel, PANEL_DDS1, Frequency2); 
 						DDS4xAD9912_SetFrequency(&DDS4xAD9912, 1, Frequency2);
 						Getsign2 = FALSE;
+						SetCtrlVal(MainPanel, PANEL_SIGN2, Signe2);
 					}
 				}
 				if (Getsign3 == TRUE) {
@@ -1204,6 +1204,7 @@
 						SetCtrlVal(MainPanel, PANEL_DDS3, Frequency3); 
 						DDS4xAD9912_SetFrequency(&DDS4xAD9912, 4, Frequency3);
 						Getsign3 = FALSE;
+						SetCtrlVal(MainPanel, PANEL_SIGN3, Signe3);
 					}
 				}