From 2435ee780f1cc3b8e878500418a141f96936b3c5 Mon Sep 17 00:00:00 2001 From: Brumi-2021 <86470699+Brumi-2021@users.noreply.github.com> Date: Sat, 2 Sep 2023 00:35:43 +0200 Subject: [PATCH] Small fine tuning xOVS selection for BW 25k (#1430) * Small fine tuning xOVS selection for BW 25k * Comments , same growing order ending with dot. --- firmware/common/oversample.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firmware/common/oversample.hpp b/firmware/common/oversample.hpp index 586787d4..fc6c134d 100644 --- a/firmware/common/oversample.hpp +++ b/firmware/common/oversample.hpp @@ -57,10 +57,10 @@ * The oversample rate is used to increase the sample rate to improve SNR and quality. * This is also used as the interpolation rate when replaying captures. */ inline OversampleRate get_oversample_rate(uint32_t sample_rate) { - if (sample_rate < 30'000) return OversampleRate::x64; // 25k, 16k, 12k5. - if (sample_rate < 80'000) return OversampleRate::x32; // 75k, 50k, 32k. + if (sample_rate < 25'000) return OversampleRate::x64; // 12k5, 16k. + if (sample_rate < 80'000) return OversampleRate::x32; // 25k, 32k, 50k, 75k. if (sample_rate < 250'000) return OversampleRate::x16; // 100k, 150k. - if (sample_rate < 1'250'000) return OversampleRate::x8; // 250k, 500k, 600k, 650k, 750k, 1Mhz. + if (sample_rate < 1'250'000) return OversampleRate::x8; // 250k, 500k, 600k, 750k, 1Mhz. return OversampleRate::x4; // Top range (1.25Mhz ... 5.5Mhz). }