Fix demod plot of data rawdemod --ar and --am

This commit is contained in:
Philippe Teuwen committed 2021-07-30 00:09:37 +02:00
1 parent e1dd711ed1
commit c013502d11
1 file changed
+6 -1
+6 -1
View File
@@ -424,7 +424,12 @@ 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) {
start_idx -= clk / 2;
}
if ( askType == 0 ) { // if not Manchester, clock width is halved
clk /= 2;
}
if (errCnt < 0 || bitlen < 16) { //if fatal error (or -1)
PrintAndLogEx(DEBUG, "DEBUG: (ASKDemod_ext) No data found errors:%d, %s bitlen:%zu, clock:%d"
, errCnt