This commit is contained in:
iceman1001 2019-04-04 07:23:18 +02:00
parent 101611b301
commit 2fa31d33fc

View file

@ -1915,7 +1915,14 @@ int pskRawDemod_ext(uint8_t *dest, size_t *size, int *clock, int *invert, int *s
waveLenCnt = waveEnd - waveStart; waveLenCnt = waveEnd - waveStart;
if (waveLenCnt > fc) { if (waveLenCnt > fc) {
//this wave is a phase shift //this wave is a phase shift
//prnt("DEBUG: phase shift at: %d, len: %d, nextClk: %d, i: %d, fc: %d",waveStart,waveLenCnt,lastClkBit+*clock-tol,i+1,fc); /*
prnt("DEBUG: phase shift at: %d, len: %d, nextClk: %d, i: %d, fc: %d"
, waveStart
, waveLenCnt
, lastClkBit + *clock - tol
, i + 1
, fc);
*/
if (i + 1 >= lastClkBit + *clock - tol) { //should be a clock bit if (i + 1 >= lastClkBit + *clock - tol) { //should be a clock bit
curPhase ^= 1; curPhase ^= 1;
dest[numBits++] = curPhase; dest[numBits++] = curPhase;