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:
commit
31b6c8514b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user