mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-11-22 10:27:54 +00:00
EmGetCmdTimeout() calls AdcSetupRssiChannel() before every listen. On AT32 that resets the ADC, waits for ready, runs both calibration phases and a blocking 640.5 cycle vref conversion, all before Uart14aInit and before the SSC is read. The single byte SPI4 buffer overruns meanwhile, so a reader frame sent close to the minimum FDT loses its start. Hardware paced frames like the MIFARE auth nR/aR hit this; host paced activation frames do not. The Miller decoder then syncs mid frame and logs short fragments with parity errors. Keep the full setup for the first call or a channel change. Otherwise clear a stale conversion flag and restart the conversion. A dropped ADC (RDY clear) still takes the full path. RDV4 is unaffected. Reported in #3768. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>