From: c vw <dl1ycf@darc.de>
Date: Mon, 2 Mar 2020 10:20:20 +0000 (+0100)
Subject: reset CTUN offset correctly when changing bands
X-Git-Url: https://git.rkrishnan.org/%5B/frontends/flags/%22doc.html/%22file://%22%3C?a=commitdiff_plain;h=8592b6bec7ed8577bea872ca5875e2e43d088e3a;p=pihpsdr.git

reset CTUN offset correctly when changing bands
---

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: