aboutsummaryrefslogtreecommitdiffstats
path: root/src/amps/dsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/amps/dsp.c')
-rw-r--r--src/amps/dsp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amps/dsp.c b/src/amps/dsp.c
index b79abc6..de31907 100644
--- a/src/amps/dsp.c
+++ b/src/amps/dsp.c
@@ -393,6 +393,9 @@ again:
}
if (c == 'i')
c = (amps->channel_busy) ? '0' : '1';
+ /* invert, if polarity of the cell is negative */
+ if (amps->flip_polarity)
+ c ^= 1;
len = fsk_encode(amps, c);
amps->fsk_tx_frame_pos++;
}