mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 06:53:42 +00:00
Fix wrong positions of the status bits.
This commit is contained in:
parent
34e0d10343
commit
30467a749c
4 changed files with 12 additions and 8 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue