Merge pull request #872 from BeigeBox/fix/dmrta-bit-mask

Fix 7-bit Talker Alias decode bit extraction
This commit is contained in:
Jonathan Naylor 2026-04-06 19:30:47 +01:00 committed by GitHub
commit 66934b920f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)