]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
bug fix for ctun scroll
authorRamakrishnan Muthukrishnan <ram@leastauthority.com>
Sun, 31 Dec 2023 12:08:04 +0000 (17:38 +0530)
committerRamakrishnan Muthukrishnan <ram@leastauthority.com>
Sun, 31 Dec 2023 12:08:04 +0000 (17:38 +0530)
TODO: define some offset from edge and scroll within those edge bands

vfo.c

diff --git a/vfo.c b/vfo.c
index 460074060b06fca76d4fe14ca71c664ede623c16..5174e0346a7d959b9510a3041c6664019b02300a 100644 (file)
--- a/vfo.c
+++ b/vfo.c
@@ -751,7 +751,7 @@ void vfo_id_move(int id, long long hz, int round) {
             } else if (rx_high >= max_freq) {
                // XXX: move the background
                long long delta_move = rx_high - max_freq;
-               vfo[id].frequency = vfo[id].frequency + hz - delta_move;
+               vfo[id].frequency = vfo[id].frequency + hz + delta_move;
                vfo[id].ctun_frequency = vfo[id].ctun_frequency + hz;
                receiver_frequency_changed(receiver[id]);
                g_idle_add(ext_vfo_update, NULL);