From ba76cb03ccd4a786f3649b4ef4d464ad7c2efde4 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 5 Nov 2022 19:09:39 +0100 Subject: [PATCH] Perseus: set frequency dial to 5 digits when not in transverter mode --- plugins/samplesource/perseus/perseusgui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/samplesource/perseus/perseusgui.cpp b/plugins/samplesource/perseus/perseusgui.cpp index c2c6a5542..faee81742 100644 --- a/plugins/samplesource/perseus/perseusgui.cpp +++ b/plugins/samplesource/perseus/perseusgui.cpp @@ -244,9 +244,9 @@ void PerseusGui::updateFrequencyLimits() } else { - minLimit = minLimit < 0 ? 0 : minLimit > 9999999 ? 9999999 : minLimit; - maxLimit = maxLimit < 0 ? 0 : maxLimit > 9999999 ? 9999999 : maxLimit; - ui->centerFrequency->setValueRange(7, minLimit, maxLimit); + minLimit = minLimit < 0 ? 0 : minLimit > 99999 ? 99999 : minLimit; + maxLimit = maxLimit < 0 ? 0 : maxLimit > 99999 ? 99999 : maxLimit; + ui->centerFrequency->setValueRange(5, minLimit, maxLimit); } qDebug("PerseusGui::updateFrequencyLimits: delta: %lld min: %lld max: %lld", deltaFrequency, minLimit, maxLimit); }