Sync indicator now works for Windows, but isn't multicolour like on Linux. As it...
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 12 Nov 2012 23:03:04 +0000 (23:03 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 12 Nov 2012 23:03:04 +0000 (23:03 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@966 01035d8c-6547-0410-b346-abe4f91aad63

fdmdv2/src/fdmdv2_main.cpp

index 45a1d7735eefc17bc7342ba7a9129956c24cfed1..ce46ce4c5600fe9aa098eab486b9ce182ece1d31 100644 (file)
@@ -423,7 +423,7 @@ void MainFrame::OnTimer(wxTimerEvent &evt)
 
     if (snr_limited < -9.0) snr_limited = -9.0; // stop text box overflow
     char snr[15];
-    sprintf(snr, "%3.1f", snr_limited);
+    sprintf(snr, "%4.1f", snr_limited);
     wxString snr_string(snr);
     m_textSNR->SetLabel(snr_string);
 
@@ -433,10 +433,14 @@ void MainFrame::OnTimer(wxTimerEvent &evt)
 
     // sync LED
 
-    if (g_State)
+    if (g_State) {
         m_rbSync->SetForegroundColour( wxColour( 0, 255, 0 ) );
-    else
+        m_rbSync->SetValue(true);
+    }
+    else {
         m_rbSync->SetForegroundColour( wxColour( 255, 0, 0 ) );
+        m_rbSync->SetValue(false);
+    }
 
 }
 #endif