From 7041c0c283d8ed949febceb088995ea404942057 Mon Sep 17 00:00:00 2001 From: c vw Date: Wed, 13 May 2020 16:52:09 +0200 Subject: [PATCH] Do not directly modify the "split" variable, use ext_split_toggle instead. --- rigctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rigctl.c b/rigctl.c index d2cb35d..811e8b6 100644 --- a/rigctl.c +++ b/rigctl.c @@ -1873,7 +1873,7 @@ void parse_cmd ( char * cmd_input,int len,int client_sock) { } else if (receivers != 1) { lcl_cmd = atoi(&cmd_input[2]); if(active_transmitter != lcl_cmd) { - split = 1; + if (split == 0) g_idle_add(ext_split_toggle, NULL); } if(active_receiver->id != lcl_cmd) { //active_receiver->id = lcl_cmd; @@ -1913,9 +1913,9 @@ void parse_cmd ( char * cmd_input,int len,int client_sock) { lcl_cmd = atoi(&cmd_input[2]); if((lcl_cmd ==0) ||(lcl_cmd == 1)) { if(lcl_cmd != active_receiver->id) { - split = 1; + if (split==0) g_idle_add(ext_split_toggle, NULL); } else { - split = 0; + if (split!=0) g_idle_add(ext_split_toggle, NULL); } active_transmitter = lcl_cmd; #ifdef RIGCTL_DEBUG -- 2.45.2