Fix command to list channel on various networks

This commit is contained in:
Andreas Eversberg 2024-03-30 23:36:03 +01:00
parent ba02b27a74
commit b8b250bd0a
4 changed files with 21 additions and 13 deletions

View File

@ -199,9 +199,11 @@ int main(int argc, char *argv[])
print_help(argv[0]); print_help(argv[0]);
return 0; return 0;
} }
if (!strcasecmp(kanal[0], "list")) { for (i = 0; i < num_kanal; i++) {
euro_list_channels(); if (!strcasecmp(kanal[i], "list")) {
goto fail; euro_list_channels();
goto fail;
}
} }
if (use_sdr) { if (use_sdr) {
/* set device */ /* set device */

View File

@ -206,9 +206,11 @@ int main(int argc, char *argv[])
print_help(argv[0]); print_help(argv[0]);
return 0; return 0;
} }
if (!strcasecmp(kanal[0], "list")) { for (i = 0; i < num_kanal; i++) {
bos_list_channels(); if (!strcasecmp(kanal[i], "list")) {
goto fail; bos_list_channels();
goto fail;
}
} }
if (use_sdr) { if (use_sdr) {
/* set device */ /* set device */

View File

@ -191,9 +191,11 @@ int main(int argc, char *argv[])
print_help(argv[0]); print_help(argv[0]);
return 0; return 0;
} }
if (!strcasecmp(kanal[0], "list")) { for (i = 0; i < num_kanal; i++) {
imts_list_channels(); if (!strcasecmp(kanal[i], "list")) {
goto fail; imts_list_channels();
goto fail;
}
} }
if (use_sdr) { if (use_sdr) {
/* set device */ /* set device */

View File

@ -56,7 +56,7 @@ static uint32_t scan_to = 0;
void print_help(const char *arg0) void print_help(const char *arg0)
{ {
main_mobile_print_help(arg0, "-k 466.230 | -k list"); main_mobile_print_help(arg0, "-k 466.230 | -k list ");
/* - - */ /* - - */
printf(" -T --tx\n"); printf(" -T --tx\n");
printf(" Transmit POCSAG signal on given channel, to page a receiver. (default)\n"); printf(" Transmit POCSAG signal on given channel, to page a receiver. (default)\n");
@ -285,9 +285,11 @@ int main(int argc, char *argv[])
print_help(argv[0]); print_help(argv[0]);
return 0; return 0;
} }
if (!strcasecmp(kanal[0], "list")) { for (i = 0; i < num_kanal; i++) {
pocsag_list_channels(); if (!strcasecmp(kanal[i], "list")) {
goto fail; pocsag_list_channels();
goto fail;
}
} }
if (use_sdr) { if (use_sdr) {
/* set device */ /* set device */