From 65de9ca2c22767ace3544c6656d4c10e1791c3fa Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Wed, 15 Jan 2020 23:25:30 +0100 Subject: [PATCH] hitag: RX was logged twice --- armsrc/hitag2.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/armsrc/hitag2.c b/armsrc/hitag2.c index 9127926d8..f61cdf432 100644 --- a/armsrc/hitag2.c +++ b/armsrc/hitag2.c @@ -1354,14 +1354,6 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) { WDT_HIT(); - // Check if frame was captured and store it - if (rxlen > 0) { - frame_count++; - response++; - LogTrace(rx, nbytes(rxlen), response, response, NULL, false); - //Dbhexdump(nbytes(rxlen), rx, false); - } - // By default reset the transmission buffer tx = txbuf; switch (htf) { @@ -1546,7 +1538,8 @@ void ReaderHitag(hitag_function htf, hitag_data *htd) { // rxlen = 32; // } - LogTrace(rx, nbytes(rxlen), response, 0, NULL, false); + // TODO response times should be cumulative/absolute + LogTrace(rx, nbytes(rxlen), response, response, NULL, false); Dbhexdump(nbytes(rxlen), rx, false); } }