1
0
mirror of https://github.com/peterantypas/maiana.git synced 2025-05-15 06:50:08 -07:00

Merge pull request #147 from abellgithub/fix-bitstuff

Reset '1' count after bitstuffing.
This commit is contained in:
Peter Antypas 2025-01-29 12:01:08 -08:00 committed by GitHub
commit 31b6c8514b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -170,6 +170,7 @@ void AISMessage::bitStuff(uint8_t *buff, uint16_t &size)
// Insert a 0 right after this one
memmove(buff + i + 2, buff + i + 1, size-i-1);
buff[i+1] = 0;
numOnes = 0;
++size;
}
break;