From 676bc467cdaaad10b75b8561d98551c08270ee53 Mon Sep 17 00:00:00 2001 From: dxl <64101226@qq.com> Date: Tue, 11 Aug 2026 12:35:41 +0800 Subject: [PATCH] Deleted unused variable 'maxDataLen' from SniffIso14443a() --- armsrc/iso14443a.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 631ddc60d..9f784c0b5 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -826,7 +826,7 @@ void RAMFUNC SniffIso14443a(uint8_t param) { uint8_t *receivedRespPar = BigBuf_calloc(MAX_PARITY_SIZE); uint8_t previous_data = 0; - int maxDataLen = 0, dataLen; + int dataLen; bool TagIsActive = false; bool ReaderIsActive = false; @@ -859,7 +859,6 @@ void RAMFUNC SniffIso14443a(uint8_t param) { uint32_t rx_samples = 0; uint32_t overrun_skips = 0; uint32_t dma_stalls = 0; - uint16_t checker = 12000; // loop and listen @@ -882,10 +881,6 @@ void RAMFUNC SniffIso14443a(uint8_t param) { dataLen = DMA_BUFFER_SIZE - readBufDataP + dmaBufDataP; } - if (dataLen > maxDataLen) { - maxDataLen = dataLen; - } - // TODO DXL This cross platform issue needs to be addressed // When the current buffer address is zeroed, it usually means the next buffer hasn't been assigned a value in time, // indicating that the MCU's processing speed is slow. @@ -919,6 +914,7 @@ void RAMFUNC SniffIso14443a(uint8_t param) { continue; } + // The MCU is processing data fast enough that the DMA has not yet received any new data. if (dataLen < 1) { continue; }