SDR: Split SDR config from main_mobile.c to sdr_config.c
This commit is contained in:
@@ -43,7 +43,7 @@ double lossdetect = 0;
|
||||
|
||||
void print_help(const char *arg0)
|
||||
{
|
||||
print_help_common(arg0, "[-V 12] ");
|
||||
main_mobile_print_help(arg0, "[-V 12] ");
|
||||
/* - - */
|
||||
printf(" -G --geo <lat>,<lon>\n");
|
||||
printf(" Give your coordinates of your location, to find closest base station.\n");
|
||||
@@ -60,7 +60,7 @@ void print_help(const char *arg0)
|
||||
printf(" percent. (disabled by default)\n");
|
||||
printf("\nstation-id: Give (last) 5 digits of station-id, you don't need to enter it\n");
|
||||
printf(" for every start of this program.\n");
|
||||
print_hotkeys_common();
|
||||
main_mobile_print_hotkeys();
|
||||
}
|
||||
|
||||
static int handle_options(int argc, char **argv)
|
||||
@@ -77,7 +77,7 @@ static int handle_options(int argc, char **argv)
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
||||
set_options_common("G:V:P:L:", long_options_special);
|
||||
main_mobile_set_options("G:V:P:L:", long_options_special);
|
||||
|
||||
while (1) {
|
||||
int option_index = 0, c;
|
||||
@@ -114,7 +114,7 @@ static int handle_options(int argc, char **argv)
|
||||
skip_args += 2;
|
||||
break;
|
||||
default:
|
||||
opt_switch_common(c, argv[0], &skip_args);
|
||||
main_mobile_opt_switch(c, argv[0], &skip_args);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,6 +137,8 @@ int main(int argc, char *argv[])
|
||||
init_freiton();
|
||||
init_besetzton();
|
||||
|
||||
main_mobile_init();
|
||||
|
||||
skip_args = handle_options(argc, argv);
|
||||
argc -= skip_args;
|
||||
argv += skip_args;
|
||||
|
Reference in New Issue
Block a user