C-Netz: Fix TX polarity selection

This commit is contained in:
Andreas Eversberg
2016-05-15 20:34:20 +02:00
parent 9ecb87f3e6
commit e9640c0cd8
2 changed files with 4 additions and 4 deletions

View File

@@ -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();
}