From a1f760259254c6d729e4fe6dbfba01b2d8d15803 Mon Sep 17 00:00:00 2001 From: tharexde Date: Tue, 30 Jun 2020 01:50:31 +0200 Subject: [PATCH] fixed: if tag status = NAK -> following detection of double listen window took too long --- armsrc/em4x50.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/armsrc/em4x50.c b/armsrc/em4x50.c index 5644962b8..0132ff2fd 100644 --- a/armsrc/em4x50.c +++ b/armsrc/em4x50.c @@ -74,7 +74,7 @@ static em4x50_tag_t tag = { #define EM4X50_T_TAG_FULL_PERIOD 64 #define EM4X50_T_TAG_TPP 64 #define EM4X50_T_TAG_TWA 64 -#define EM4X50_T_WAITING_FOR_DBLLIW 1600 +#define EM4X50_T_WAITING_FOR_DBLLIW 1550 #define EM4X50_TAG_TOLERANCE 8 #define EM4X50_TAG_WORD 45 @@ -535,6 +535,10 @@ static bool check_ack(bool bliw) { return true; } } + } else { + + // It's NAK -> stop searching + break; } } }