From 94288fa3c1c8ac933e5446e6f602aef360f515dd Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Thu, 17 Dec 2020 11:36:49 +0100
Subject: [PATCH] Deactivated "RIT/XIT adjustment of VFO display frequencies"
 since there is no consensus if this should be done or not. The code is
 deactivate with #if 0 / #endif but still there, if needed.

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

diff --git a/vfo.c b/vfo.c
index 3096a0b..174f449 100644
--- a/vfo.c
+++ b/vfo.c
@@ -1078,6 +1078,16 @@ void vfo_update() {
         long long af = vfo[0].ctun ? vfo[0].ctun_frequency : vfo[0].frequency;
         long long bf = vfo[1].ctun ? vfo[1].ctun_frequency : vfo[1].frequency;
 
+#if 0
+//
+// DL1YCF: code still here but deactivated:
+// there is no consensus whether the "VFO display frequency" should move if
+// RIT/XIT values are changed. My Kenwood TS590 does, but some popular
+// other SDR software does not.
+// So although I do not feel too well if the actual TX frequency is not
+// that on the display, I deactivate the code but leave it here so it
+// can quickly be re-activated if one wants.
+// 
         //
         // If RIT or XIT is active, add this to displayed VFO frequency
         //
@@ -1096,6 +1106,7 @@ void vfo_update() {
         } else {
           if (vfo[1].rit_enabled) bf += vfo[0].rit;
         }
+#endif
 
         int oob=0;
         if (can_transmit) oob=transmitter->out_of_band;
-- 
2.45.2