Fix wrong positions of the status bits.

This commit is contained in:
Jonathan Naylor
2016-09-13 06:24:06 +01:00
parent 34e0d10343
commit 30467a749c
4 changed files with 12 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ void CP25NID::process(unsigned char* data)
unsigned int n = 0U;
for (unsigned int offset = 48U; offset < 114U; offset++) {
if (offset != 70U && offset != 71U) {
if (offset != P25_SS0_START && offset != P25_SS1_START) {
bool b = READ_BIT(data, offset);
WRITE_BIT(nid, n, b);
n++;
@@ -61,7 +61,7 @@ void CP25NID::process(unsigned char* data)
n = 0U;
for (unsigned int offset = 48U; offset < 114U; offset++) {
if (offset != 70U && offset != 71U) {
if (offset != P25_SS0_START && offset != P25_SS1_START) {
bool b = READ_BIT(nid, n);
WRITE_BIT(data, offset, b);
n++;