From c56497a629afe60ae8e7b7df76e0c6b4a9ad74a2 Mon Sep 17 00:00:00 2001 From: dxl <64101226@qq.com> Date: Sat, 1 Aug 2026 15:45:49 +0800 Subject: [PATCH] Supplement logic comments to avoid misleading developers. --- client/src/cmdlfem4x05.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/cmdlfem4x05.c b/client/src/cmdlfem4x05.c index a40873519..9a14ecc3a 100644 --- a/client/src/cmdlfem4x05.c +++ b/client/src/cmdlfem4x05.c @@ -200,7 +200,8 @@ static int doPreambleSearch(size_t *startIdx) { size_t size = (11 > g_DemodBufferLen) ? g_DemodBufferLen : 11; *startIdx = 0; - // skip first two 0 bits as they might have been missed in the demod + // A long time ago, the first two zeros of the preamble were skipped + // because previous decoders had a probability of missing the first part of the data. uint8_t preamble[EM_PREAMBLE_LEN] = {0, 0, 0, 0, 1, 0, 1, 0}; if (!preambleSearchEx(g_DemodBuffer, preamble, EM_PREAMBLE_LEN, &size, startIdx, true)) {