mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-21 06:13:49 +00:00
Merge pull request #872 from BeigeBox/fix/dmrta-bit-mask
Fix 7-bit Talker Alias decode bit extraction
This commit is contained in:
commit
66934b920f
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ bool CDMRTA::decodeTA()
|
|||
|
||||
for (unsigned int i = 0U; (i < 32U) && (t2 < taSize); i++) {
|
||||
for (int j = 7; j >= 0; j--) {
|
||||
c = (c << 1U) | (b[i] >> j);
|
||||
c = (c << 1U) | ((b[i] >> j) & 1U);
|
||||
|
||||
if (++t1 == 7U) {
|
||||
if (i > 0U)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue