aboutsummaryrefslogtreecommitdiffstats
path: root/src/amps
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-08-30 17:42:49 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-09-02 07:34:48 +0200
commita52c89800c9826634bcae3a635b71feb905b3641 (patch)
treeee3b8c3e86eabf037a453ba2cbfdb279f39ef55d /src/amps
parent94ed39f5e28520ba968a604c7eeabf2be0ca35d7 (diff)
SDR: Split SDR config from main_mobile.c to sdr_config.c
Diffstat (limited to 'src/amps')
-rw-r--r--src/amps/amps_tacs_main.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/amps/amps_tacs_main.c b/src/amps/amps_tacs_main.c
index eee7dcc..3065e7d 100644
--- a/src/amps/amps_tacs_main.c
+++ b/src/amps/amps_tacs_main.c
@@ -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;