From 371a40bf3e96f9137cbec124c21e6c89e1f1d2e7 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Fri, 20 Jan 2017 22:18:09 +0100 Subject: [PATCH] CHG: 'lf visa2000 read' - with new STT, the need to find 192bits is not neeeded. --- common/lfdemod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lfdemod.c b/common/lfdemod.c index 8b951dc8..27f7bb06 100644 --- a/common/lfdemod.c +++ b/common/lfdemod.c @@ -698,7 +698,7 @@ int VikingDemod_AM(uint8_t *dest, size_t *size) { // by iceman // find Visa2000 preamble in already demoded data int Visa2kDemod_AM(uint8_t *dest, size_t *size) { - if (*size < 96*2) return -1; //make sure buffer has data + if (*size < 96) return -1; //make sure buffer has data size_t startIdx = 0; uint8_t preamble[] = {0,1,0,1,0,1,1,0,0,1,0,0,1,0,0,1,0,1,0,1,0,0,1,1,0,0,1,1,0,0,1,0}; uint8_t errChk = preambleSearch(dest, preamble, sizeof(preamble), size, &startIdx); -- 2.39.2