askdemod_ext: update startIdx in case of weak demodulation too

This commit is contained in:
Philippe Teuwen 2020-10-07 22:50:22 +02:00
parent 9962b8769a
commit 3eea2e20bb

View file

@ -1663,6 +1663,7 @@ int askdemod_ext(uint8_t *bits, size_t *size, int *clk, int *invert, int maxErr,
return errCnt;
}
*startIdx = start - (*clk / 2);
if (g_debugMode == 2) prnt("DEBUG: (askdemod_ext) Weak wave detected: startIdx %i", *startIdx);
int lastBit; //set first clock check - can go negative