Skip to content

Commit

Permalink
Recall Bookmark
Browse files Browse the repository at this point in the history
A Boolmark recall now sets the frequency offset to zero and thus the bookmark frequency = hardware frequency. If e.g. the offset frequency is 700 Khz and the bookmark has a frequency below that, it could not be set from a bookmark up to now.

Then void MainWindow :: setPassband has been changed so that asymmetrical filter bandwidths also work as with the change in void MainWindow::onBookmarkActivated
  • Loading branch information
ulrichloose committed Nov 29, 2022
1 parent fb24268 commit f2f1871
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/applications/gqrx/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2224,19 +2224,19 @@ void MainWindow::setPassband(int bandwidth)
int lo, hi;
uiDockRxOpt->getFilterPreset(mode, preset, &lo, &hi);

if(lo + hi == 0)
{
lo = -bandwidth / 2;
hi = bandwidth / 2;
}
else if(lo >= 0 && hi >= 0)
if(lo >= 0 && hi >= 0) // USB
{
hi = lo + bandwidth;
}
else if(lo <= 0 && hi <= 0)
else if(lo <= 0 && hi <= 0) // LSB
{
lo = hi - bandwidth;
}
else // symmetric and anything else
{
lo = -bandwidth / 2;
hi = bandwidth / 2;
}

remote->setPassband(lo, hi);

Expand Down

0 comments on commit f2f1871

Please sign in to comment.