From 8592b6bec7ed8577bea872ca5875e2e43d088e3a Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Mon, 2 Mar 2020 11:20:20 +0100
Subject: [PATCH] reset CTUN offset correctly when changing bands

---
 vfo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/vfo.c b/vfo.c
index 9c41bdb..cfb6b38 100644
--- a/vfo.c
+++ b/vfo.c
@@ -291,6 +291,8 @@ void vfo_band_changed(int b) {
   // turn off ctun
   vfo[id].ctun=0;
   vfo[id].offset=0;
+  // tell WDSP about the offset
+  set_offset(active_receiver, vfo[i].offset);
 
   switch(id) {
     case 0:
-- 
2.45.2