C-Netz: Fix TX polarity selection
This commit is contained in:
@@ -200,11 +200,11 @@ int cnetz_create(int kanal, enum cnetz_chan_type chan_type, const char *sounddev
|
|||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case -1:
|
||||||
/* select cell 1 for negative polarity */
|
/* select cell 1 for negative polarity */
|
||||||
cnetz->cell_nr = 1;
|
cnetz->cell_nr = 1;
|
||||||
cnetz->cell_auto = 0;
|
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);
|
fprintf(stderr, "cell %d must have negative polarity, please fix!\n", cnetz->cell_nr);
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
|
@@ -64,9 +64,9 @@ void print_help(const char *arg0)
|
|||||||
printf(" correct signal processing speed. After adjustment, the clock must match\n");
|
printf(" correct signal processing speed. After adjustment, the clock must match\n");
|
||||||
printf(" +- 1ppm or better. CORRECTING CLOCK SPEED IS REQUIRED! See\n");
|
printf(" +- 1ppm or better. CORRECTING CLOCK SPEED IS REQUIRED! See\n");
|
||||||
printf(" documentation on how to measure correct value.\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(" 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(" 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(" Once a mobile registers, the correct polarity is selected and used.\n");
|
||||||
printf(" (default = %s)\n", flip_polarity);
|
printf(" (default = %s)\n", flip_polarity);
|
||||||
|
Reference in New Issue
Block a user