stupid typo of mine, thanks iceman

This commit is contained in:
Philippe Teuwen 2021-07-30 00:25:07 +02:00
commit 25e865afd3

View file

@ -424,7 +424,7 @@ int ASKDemod_ext(int clk, int invert, int maxErr, size_t maxlen, bool amplify, b
int start_idx = 0; int start_idx = 0;
int errCnt = askdemod_ext(bits, &bitlen, &clk, &invert, maxErr, askamp, askType, &start_idx); int errCnt = askdemod_ext(bits, &bitlen, &clk, &invert, maxErr, askamp, askType, &start_idx);
if (start_idx >- clk / 2) { if (start_idx >= clk / 2) {
start_idx -= clk / 2; start_idx -= clk / 2;
} }
if ( askType == 0 ) { // if not Manchester, clock width is halved if ( askType == 0 ) { // if not Manchester, clock width is halved