1
0
mirror of https://github.com/peterantypas/maiana.git synced 2025-05-15 23:10:11 -07:00

Reset '1' count after bitstuffing.

This commit is contained in:
Andrew Bell 2024-11-20 10:32:44 -05:00
parent dd4effa615
commit dd477befff

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;