From 542dabd9f84abab1ec0e33e9b9e992069fd770c5 Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan Date: Sun, 31 Dec 2023 17:38:04 +0530 Subject: [PATCH] bug fix for ctun scroll TODO: define some offset from edge and scroll within those edge bands --- vfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vfo.c b/vfo.c index 4600740..5174e03 100644 --- 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); -- 2.45.2