kopia lustrzana https://github.com/Hamlib/Hamlib
Use rig_set_conf to set pathname in rigctl and rigctld -- allows retention of default port for example
rodzic
0652f65d0e
commit
97a693a87f
|
@ -68,6 +68,7 @@ extern int read_history();
|
||||||
#include "misc.h"
|
#include "misc.h"
|
||||||
#include "rigctl_parse.h"
|
#include "rigctl_parse.h"
|
||||||
#include "riglist.h"
|
#include "riglist.h"
|
||||||
|
#include "token.h"
|
||||||
|
|
||||||
#define MAXNAMSIZ 32
|
#define MAXNAMSIZ 32
|
||||||
#define MAXNBOPT 100 /* max number of different options */
|
#define MAXNBOPT 100 /* max number of different options */
|
||||||
|
@ -592,7 +593,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
if (rig_file)
|
if (rig_file)
|
||||||
{
|
{
|
||||||
strncpy(RIGPORT(my_rig)->pathname, rig_file, HAMLIB_FILPATHLEN - 1);
|
rig_set_conf(my_rig, TOK_PATHNAME, rig_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -74,6 +74,7 @@
|
||||||
|
|
||||||
#include "rigctl_parse.h"
|
#include "rigctl_parse.h"
|
||||||
#include "riglist.h"
|
#include "riglist.h"
|
||||||
|
#include "token.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Reminder: when adding long options,
|
* Reminder: when adding long options,
|
||||||
|
@ -691,7 +692,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
if (rig_file)
|
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;
|
my_rig->state.twiddle_timeout = twiddle_timeout;
|
||||||
|
|
Ładowanie…
Reference in New Issue