From 0670531f3a254a93b3dd1a29360b7b4f0be263cb Mon Sep 17 00:00:00 2001
From: John Melton G0ORX <john.d.melton@googlemail.com>
Date: Sat, 23 Nov 2019 10:52:37 +0000
Subject: [PATCH] Set first and last sample displayed to -200

---
 tx_panadapter.c | 6 +++---
 version.c       | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/tx_panadapter.c b/tx_panadapter.c
index d764e51..997eb9f 100644
--- a/tx_panadapter.c
+++ b/tx_panadapter.c
@@ -332,12 +332,12 @@ void tx_panadapter_update(TRANSMITTER *tx) {
 
   // signal
   double s1,s2;
-  samples[0]=-200.0;
-  samples[display_width-1]=-200.0;
 
   int offset=(tx->pixels/2)-(display_width/2);
+  samples[offset]=-200.0;
+  samples[offset+display_width-1]=-200.0;
 
-  s1=(double)samples[0+offset];
+  s1=(double)samples[offset];
   s1 = floor((tx->panadapter_high - s1)
                         * (double) display_height
                         / (tx->panadapter_high - tx->panadapter_low));
diff --git a/version.c b/version.c
index b8caf89..a6762d4 100644
--- a/version.c
+++ b/version.c
@@ -21,11 +21,11 @@ char build_date[]=GIT_DATE;
 char build_version[]=GIT_VERSION;
 
 #if defined (CONTROLLER2_V1)
-char version[]="2.0.6-beta (Controller2 V1)";
+char version[]="2.0.7-beta (Controller2 V1)";
 #elif defined (CONTROLLER2_V2)
-char version[]="2.0.6-beta (Controller2 V2)";
+char version[]="2.0.7-beta (Controller2 V2)";
 #elif defined (GPIO)
-char version[]="2.0.6-beta (Controller1)";
+char version[]="2.0.7-beta (Controller1)";
 #else
-char version[]="2.0.6-beta";
+char version[]="2.0.7-beta";
 #endif
-- 
2.45.2