lf fdx demod - less strick len check

This commit is contained in:
iceman1001 2020-10-06 10:21:46 +02:00
parent d316d96e04
commit 957a1a8bf3

View file

@ -589,7 +589,7 @@ int detectFDXB(uint8_t *dest, size_t *size) {
uint8_t preamble[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1};
if (!preambleSearch(dest, preamble, sizeof(preamble), size, &startIdx))
return -2; //preamble not found
if (*size != 128) return -3; //wrong demoded size
if (*size < 128) return -3; //wrong demoded size
//return start position
return (int)startIdx;
}