Skip to content

Commit

Permalink
Update RadioHandler.cpp (#186)
Browse files Browse the repository at this point in the history
VHF tuning  sign of correction fixed
  • Loading branch information
ik1xpv authored Mar 18, 2021
1 parent 74253a4 commit bb25bc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/RadioHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::mutex> lk(fc_mutex);
Expand Down

0 comments on commit bb25bc9

Please sign in to comment.