mirror of
https://github.com/peterantypas/maiana.git
synced 2025-05-15 15:00:08 -07:00
Reset '1' count after bitstuffing.
This commit is contained in:
parent
dd4effa615
commit
dd477befff
@ -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