From: c vw <chwu@vpn-ipv4-0267.triple-a.uni-kl.de>
Date: Sat, 26 Oct 2019 21:37:24 +0000 (+0200)
Subject: small fix
X-Git-Url: https://git.rkrishnan.org/pf/vdrive/simplejson/(%5B%5E?a=commitdiff_plain;h=794f8b5565a44b7f3a96ba88b88a733475189ba5;p=pihpsdr.git

small fix
---

diff --git a/rigctl.c b/rigctl.c
index b54e84f..507518b 100644
--- a/rigctl.c
+++ b/rigctl.c
@@ -527,6 +527,8 @@ static gpointer rigctl_cw_thread(gpointer data)
       }
       cw_busy=0; // mark one-line buffer free again
     }
+    // This may happen if cw_buf was empty or contained only blanks
+    if (num_buf == 0) continue;
 
     // these values may have changed, so recompute them here
     // This means that we can change the speed (KS command) while