From 437035a75b2737d0b36886bc2bacaeb0219c6325 Mon Sep 17 00:00:00 2001 From: AntiCat Date: Wed, 30 Jan 2019 22:20:57 +0100 Subject: [PATCH] Legic TagSim: increased reader timeout (#771) Bug reports from @raphCode and @uhei over at the RfidResearchGroup have shown that the tag to rwd timeout is too short. --- armsrc/legicrfsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/legicrfsim.c b/armsrc/legicrfsim.c index a149e0f9..1411fbea 100644 --- a/armsrc/legicrfsim.c +++ b/armsrc/legicrfsim.c @@ -51,7 +51,7 @@ static uint32_t last_frame_end; /* ts of last bit of previews rx or tx frame */ #define RWD_TIME_PAUSE 4 /* 18.9us */ #define RWD_TIME_1 21 /* RWD_TIME_PAUSE 18.9us off + 80.2us on = 99.1us */ #define RWD_TIME_0 13 /* RWD_TIME_PAUSE 18.9us off + 42.4us on = 61.3us */ -#define RWD_CMD_TIMEOUT 40 /* 40 * 99.1us (arbitrary value) */ +#define RWD_CMD_TIMEOUT 120 /* 120 * 99.1us (arbitrary value) */ #define RWD_MIN_FRAME_LEN 6 /* Shortest frame is 6 bits */ #define RWD_MAX_FRAME_LEN 23 /* Longest frame is 23 bits */ -- 2.39.5