C-Netz: Fix TX polarity selection
This commit is contained in:
parent
9ecb87f3e6
commit
e9640c0cd8
|
@ -200,11 +200,11 @@ int cnetz_create(int kanal, enum cnetz_chan_type chan_type, const char *sounddev
|
|||
abort();
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
case -1:
|
||||
/* select cell 1 for negative polarity */
|
||||
cnetz->cell_nr = 1;
|
||||
cnetz->cell_auto = 0;
|
||||
if (si[cnetz->cell_nr].flip_polarity != 0) {
|
||||
if (si[cnetz->cell_nr].flip_polarity == 0) {
|
||||
fprintf(stderr, "cell %d must have negative polarity, please fix!\n", cnetz->cell_nr);
|
||||
abort();
|
||||
}
|
||||
|
|
|
@ -64,9 +64,9 @@ void print_help(const char *arg0)
|
|||
printf(" correct signal processing speed. After adjustment, the clock must match\n");
|
||||
printf(" +- 1ppm or better. CORRECTING CLOCK SPEED IS REQUIRED! See\n");
|
||||
printf(" documentation on how to measure correct value.\n");
|
||||
printf(" -F --flip-polarity no | yes auto\n");
|
||||
printf(" -F --flip-polarity no | yes | auto\n");
|
||||
printf(" Flip polarity of transmitted FSK signal. If yes, the sound card\n");
|
||||
printf(" generates a negative signal rather than a positive one. If auto, the");
|
||||
printf(" generates a negative signal rather than a positive one. If auto, the\n");
|
||||
printf(" base station generates two virtual base stations with both polarities.\n");
|
||||
printf(" Once a mobile registers, the correct polarity is selected and used.\n");
|
||||
printf(" (default = %s)\n", flip_polarity);
|
||||
|
|
Loading…
Reference in New Issue