From a190ac5a9877d9b284ac0e9f547e4afab70200a9 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Mon, 12 Nov 2012 23:03:04 +0000 Subject: [PATCH] Sync indicator now works for Windows, but isn't multicolour like on Linux. As it is implemented with a radio button, unfortunately the user can press it. git-svn-id: https://svn.code.sf.net/p/freetel/code@966 01035d8c-6547-0410-b346-abe4f91aad63 --- fdmdv2/src/fdmdv2_main.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/fdmdv2/src/fdmdv2_main.cpp b/fdmdv2/src/fdmdv2_main.cpp index 45a1d773..ce46ce4c 100644 --- a/fdmdv2/src/fdmdv2_main.cpp +++ b/fdmdv2/src/fdmdv2_main.cpp @@ -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 -- 2.25.1