Merge pull request #835 from jumpycalm/master

fix a bug in demodParadox()
This commit is contained in:
Iceman 2020-07-11 09:46:36 +02:00 committed by GitHub
commit 73e80793bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -128,7 +128,7 @@ int demodParadox(void) {
uint8_t error = 0; uint8_t error = 0;
// Remove manchester encoding from FSK bits, skip pre // Remove manchester encoding from FSK bits, skip pre
for (uint8_t i = idx + PARADOX_PREAMBLE_LEN; i < (idx + 96 - PARADOX_PREAMBLE_LEN ); i += 2) { for (uint8_t i = idx + PARADOX_PREAMBLE_LEN; i < (idx + 96); i += 2) {
// not manchester data // not manchester data
if (bits[i] == bits[i + 1]) { if (bits[i] == bits[i + 1]) {