From bb25bc9d959d29b6da1a67ad699ea0a27021b394 Mon Sep 17 00:00:00 2001 From: Oscar Steila Date: Thu, 18 Mar 2021 15:29:59 +0100 Subject: [PATCH] Update RadioHandler.cpp (#186) VHF tuning sign of correction fixed --- Core/RadioHandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/RadioHandler.cpp b/Core/RadioHandler.cpp index a657c901..28370808 100644 --- a/Core/RadioHandler.cpp +++ b/Core/RadioHandler.cpp @@ -338,7 +338,8 @@ uint64_t RadioHandlerClass::TuneLO(uint64_t wishedFreq) int64_t offset = wishedFreq - actLo; DbgPrintf("Offset freq %" PRIi64 "\n", offset); float fc = r2iqCntrl->setFreqOffset(offset / (getSampleRate() / 2.0f)); - + if (GetmodeRF() == VHFMODE) + fc = -fc; // sign change with sideband used if (this->fc != fc) { std::unique_lock lk(fc_mutex);