stupid typo of mine, thanks iceman

This commit is contained in:
Philippe Teuwen committed 2021-07-30 00:25:30 +02:00
1 parent 972945ed24
commit 25e865afd3
1 file changed
+1 -1
+1 -1
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 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;
}
if ( askType == 0 ) { // if not Manchester, clock width is halved