X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/872e3d4d6f6dd1ae01ef67e4ad8255243f1e24ec..ec9882b18c9e12a60bb0face34ea4bcc072c2dfb:/common/lfdemod.c diff --git a/common/lfdemod.c b/common/lfdemod.c index 79252dd9..bee87ece 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -1068,6 +1068,23 @@ void psk1TOpsk2(uint8_t *BitStream, size_t size) return; } +// by marshmellow +// convert psk2 demod to psk1 demod +// from only transition waves are 1s to phase shifts change bit +void psk2TOpsk1(uint8_t *BitStream, size_t size) +{ + size_t i; + uint8_t phase=BitStream[0]; + //uint8_t lastBit=BitStream[0]; + for (i=1; i