aboutsummaryrefslogtreecommitdiffstats
path: root/src/amps/dsp.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-05-15 17:59:09 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-05-17 20:06:43 +0200
commit12dcc6c40ffcd434e094370def1048c98e1444a5 (patch)
tree8029806c9befc022a9194cea7f82225bea6918de /src/amps/dsp.c
parent4d10ee7c82315f9933ad01433e9502d2f36b4621 (diff)
Minor fixes on AMPS messages
- Flipping polarity is now performed after B/I has been applied - Correcting sysinfo
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++;
}