hitag: RX was logged twice

This commit is contained in:
Philippe Teuwen 2020-01-15 23:25:30 +01:00
parent aa0879eee4
commit 65de9ca2c2

View file

@ -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);
}
}