]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
small fix
authorc vw <chwu@vpn-ipv4-0267.triple-a.uni-kl.de>
Sat, 26 Oct 2019 21:37:24 +0000 (23:37 +0200)
committerc vw <chwu@vpn-ipv4-0267.triple-a.uni-kl.de>
Sat, 26 Oct 2019 21:37:24 +0000 (23:37 +0200)
rigctl.c

index b54e84f846684795978f9e0d56fbec327eb8ca84..507518baa2db7b5b0ee8d98449bc8a1d4292a506 100644 (file)
--- 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