Use rig_set_conf to set pathname in rigctl and rigctld -- allows retention of default port for example

pull/1557/head
Mike Black W9MDB 2024-05-24 07:24:24 -05:00
rodzic 0652f65d0e
commit 97a693a87f
2 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -68,6 +68,7 @@ extern int read_history();
#include "misc.h"
#include "rigctl_parse.h"
#include "riglist.h"
#include "token.h"
#define MAXNAMSIZ 32
#define MAXNBOPT 100 /* max number of different options */
@ -592,7 +593,7 @@ int main(int argc, char *argv[])
if (rig_file)
{
strncpy(RIGPORT(my_rig)->pathname, rig_file, HAMLIB_FILPATHLEN - 1);
rig_set_conf(my_rig, TOK_PATHNAME, rig_file);
}
/*

Wyświetl plik

@ -74,6 +74,7 @@
#include "rigctl_parse.h"
#include "riglist.h"
#include "token.h"
/*
* Reminder: when adding long options,
@ -691,7 +692,7 @@ int main(int argc, char *argv[])
if (rig_file)
{
strncpy(RIGPORT(my_rig)->pathname, rig_file, HAMLIB_FILPATHLEN - 1);
rig_set_conf(my_rig, TOK_PATHNAME, rig_file);
}
my_rig->state.twiddle_timeout = twiddle_timeout;