Make rigctld_vfo_mode a stack variable for threading

pull/123/head
Michael Black 2019-07-31 10:56:21 -05:00
rodzic 120637d87d
commit 436449211f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -127,7 +127,6 @@ static const int have_rl = 1;
int interactive = 1; /* if no cmd on command line, switch to interactive */
int prompt = 1; /* Print prompt in rigctl */
int vfo_mode = 0; /* vfo_mode = 0 means target VFO is 'currVFO' */
int rigctld_vfo_mode;
char send_cmd_term = '\r'; /* send_cmd termination char */
@ -528,7 +527,7 @@ int main(int argc, char *argv[])
if (my_rig->caps->rig_model == RIG_MODEL_NETRIGCTL) {
/* We automatically detect if we need to be in vfo mode or not */
rigctld_vfo_mode = netrigctl_get_vfo_mode(my_rig);
int rigctld_vfo_mode = netrigctl_get_vfo_mode(my_rig);
if (rigctld_vfo_mode && !vfo_mode) {
fprintf(stderr, "Looks like rigctld is using vfo mode so we're switching to vfo mode\n");
vfo_mode = rigctld_vfo_mode;