SDR: Split SDR config from main_mobile.c to sdr_config.c
This commit is contained in:
@@ -45,9 +45,9 @@ int tolerant = 0;
|
||||
void print_help(const char *arg0)
|
||||
{
|
||||
if (!tacs)
|
||||
print_help_common(arg0, "-p -d -F yes | no [-S sid=<sid>] ");
|
||||
main_mobile_print_help(arg0, "-p -d -F yes | no [-S sid=<sid>] ");
|
||||
else
|
||||
print_help_common(arg0, "-p -d -F yes | no [-S aid=<aid>] ");
|
||||
main_mobile_print_help(arg0, "-p -d -F yes | no [-S aid=<aid>] ");
|
||||
/* - - */
|
||||
printf(" -T --channel-type <channel type> | list\n");
|
||||
printf(" Give channel type, use 'list' to get a list. (default = '%s')\n", chan_type_short_name(chan_type[0]));
|
||||
@@ -102,7 +102,7 @@ void print_help(const char *arg0)
|
||||
printf(" Be more tolerant when hunting for sync sequence\n");
|
||||
printf("\nstation-id: Give 10 digit station-id, you don't need to enter it for every\n");
|
||||
printf(" start of this program.\n");
|
||||
print_hotkeys_common();
|
||||
main_mobile_print_hotkeys();
|
||||
}
|
||||
|
||||
static int handle_options(int argc, char **argv)
|
||||
@@ -121,7 +121,7 @@ static int handle_options(int argc, char **argv)
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
set_options_common("T:F:P:D:S:O", long_options_special);
|
||||
main_mobile_set_options("T:F:P:D:S:O", long_options_special);
|
||||
|
||||
while (1) {
|
||||
int option_index = 0, c;
|
||||
@@ -238,7 +238,7 @@ static int handle_options(int argc, char **argv)
|
||||
skip_args += 1;
|
||||
break;
|
||||
default:
|
||||
opt_switch_common(c, argv[0], &skip_args);
|
||||
main_mobile_opt_switch(c, argv[0], &skip_args);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -258,6 +258,8 @@ int main_amps_tacs(int argc, char *argv[])
|
||||
/* override default */
|
||||
samplerate = 96000;
|
||||
|
||||
main_mobile_init();
|
||||
|
||||
skip_args = handle_options(argc, argv);
|
||||
argc -= skip_args;
|
||||
argv += skip_args;
|
||||
|
Reference in New Issue
Block a user