Update rigctlsync

pull/1242/head
Mike Black W9MDB 2023-01-27 23:49:47 -06:00
rodzic 9bc5c4a883
commit 2cec9e6d57
2 zmienionych plików z 6 dodań i 11 usunięć

Wyświetl plik

@ -264,7 +264,7 @@ with FLRig as the Hamlib model
.PP .PP
.in +4n .in +4n
.EX .EX
.RB $ " rigctlsync -m 4 -M 9" .RB $ " rigctlsync -m 4 -M 9 -R 192.168.1.1:4532"
.EE .EE
.in .in
. .

Wyświetl plik

@ -211,7 +211,7 @@ int main(int argc, char *argv[])
int show_conf = 0; int show_conf = 0;
int dump_caps_opt = 0; int dump_caps_opt = 0;
const char *rig_file = NULL, *rig_file2 = NULL; const char *rig_file = NULL, *rig_file2 = "127.0.0.1:4532";
//const char **ptt_file = NULL, *dcd_file = NULL; //const char **ptt_file = NULL, *dcd_file = NULL;
//ptt_type_t ptt_type = RIG_PTT_NONE; //ptt_type_t ptt_type = RIG_PTT_NONE;
//dcd_type_t dcd_type = RIG_DCD_NONE; //dcd_type_t dcd_type = RIG_DCD_NONE;
@ -220,7 +220,7 @@ int main(int argc, char *argv[])
char *civaddr = NULL; /* NULL means no need to set conf */ char *civaddr = NULL; /* NULL means no need to set conf */
char conf_parms[MAXCONFLEN] = ""; char conf_parms[MAXCONFLEN] = "";
printf("rigctlcom Version 1.4\n"); printf("rigctlsync Version 1.0\n");
if (argc < 3) if (argc < 3)
{ {
@ -494,7 +494,7 @@ int main(int argc, char *argv[])
rig_set_debug(verbose); rig_set_debug(verbose);
rig_debug(RIG_DEBUG_VERBOSE, "%s, %s\n", "rigctlcom", hamlib_version2); rig_debug(RIG_DEBUG_VERBOSE, "%s, %s\n", "rigctlsync", hamlib_version2);
rig_debug(RIG_DEBUG_VERBOSE, "%s", rig_debug(RIG_DEBUG_VERBOSE, "%s",
"Report bugs to <hamlib-developer@lists.sourceforge.net>\n\n"); "Report bugs to <hamlib-developer@lists.sourceforge.net>\n\n");
@ -550,12 +550,7 @@ int main(int argc, char *argv[])
strncpy(my_rig->state.rigport.pathname, rig_file, HAMLIB_FILPATHLEN - 1); strncpy(my_rig->state.rigport.pathname, rig_file, HAMLIB_FILPATHLEN - 1);
} }
if (!rig_file2) fprintf(stderr, "rig to send frequency to: %s\n", rig_file2);
{
fprintf(stderr, "-R com port not provided\n");
exit(2);
}
strncpy(my_rig_sync->state.rigport.pathname, rig_file2, HAMLIB_FILPATHLEN - 1); strncpy(my_rig_sync->state.rigport.pathname, rig_file2, HAMLIB_FILPATHLEN - 1);
#if 0 #if 0
@ -691,7 +686,7 @@ void usage()
name); name);
printf("Example: Sync freq from rigctld to SDR#\n"); printf("Example: Sync freq from rigctld to SDR#\n");
printf("\t%s -m 2 -M 9 127.0.0.1:4532\n\n", name); printf("\t%s -m 2 -M 9 -R 127.0.0.1:4532\n\n", name);
printf("See the %s.1 manual page for complete details.\n\n", name); printf("See the %s.1 manual page for complete details.\n\n", name);
printf( printf(