From c642f9d39f96ae6567ccbcc8f699f993b895b46c Mon Sep 17 00:00:00 2001 From: Mooneer Salem Date: Tue, 18 Feb 2025 13:02:00 -0800 Subject: [PATCH] Only show whole number SNRs in main window. (#832) --- src/main.cpp | 2 +- src/topFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 44216b0e..ac07a278 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1696,7 +1696,7 @@ void MainFrame::OnTimer(wxTimerEvent &evt) if (snr_limited < -5.0) snr_limited = -5.0; if (snr_limited > 40.0) snr_limited = 40.0; char snr[15]; - snprintf(snr, 15, "%4.1f dB", g_snr); + snprintf(snr, 15, "%4.0f dB", g_snr); if (freedvInterface.getSync()) { diff --git a/src/topFrame.cpp b/src/topFrame.cpp index 880235f6..2b055ac3 100644 --- a/src/topFrame.cpp +++ b/src/topFrame.cpp @@ -431,7 +431,7 @@ TopFrame::TopFrame(wxWindow* parent, wxWindowID id, const wxString& title, const //------------------------------ // Box for S/N ratio (Numeric) //------------------------------ - m_textSNR = new wxStaticText(snrBox, wxID_ANY, wxT(" 0.0 dB"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE); + m_textSNR = new wxStaticText(snrBox, wxID_ANY, wxT("--"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTRE); m_textSNR->SetMinSize(wxSize(70,-1)); snrSizer->Add(m_textSNR, 0, wxALIGN_CENTER_HORIZONTAL, 1);