binarraytohex: handle Manchester wrong bit markers

This commit is contained in:
Philippe Teuwen 2019-03-15 00:09:40 +01:00
commit f1a0e57f65
4 changed files with 46 additions and 22 deletions

View file

@ -1357,6 +1357,7 @@ int BiphaseRawDecode(uint8_t *bits, size_t *size, int *offset, int invert) {
//by marshmellow
//take 10 and 01 and manchester decode
//run through 2 times and take least errCnt
// "7" indicates 00 or 11 wrong bit
int manrawdecode(uint8_t *bits, size_t *size, uint8_t invert, uint8_t *alignPos) {
// sanity check