Minor fixes on AMPS messages

- Flipping polarity is now performed after B/I has been applied
- Correcting sysinfo
This commit is contained in:
Andreas Eversberg
2017-05-15 17:59:09 +02:00
parent 4d10ee7c82
commit 12dcc6c40f
3 changed files with 17 additions and 35 deletions

View File

@@ -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++;
}