a couple em4x05 fixes.

This commit is contained in:
marshmellow42 2017-02-16 13:57:14 -05:00
commit 2d99d9912c
3 changed files with 21 additions and 18 deletions

View file

@ -1375,10 +1375,10 @@ uint16_t countFC(uint8_t *BitStream, size_t size, uint8_t fskAdj)
uint8_t fcLens[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
uint16_t fcCnts[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
uint8_t fcLensFnd = 0;
uint8_t lastFCcnt=0;
uint8_t lastFCcnt = 0;
uint8_t fcCounter = 0;
size_t i;
if (size == 0) return 0;
if (size < 180) return 0;
// prime i to first up transition
for (i = 160; i < size-20; i++)