From f5d08762de8fe1160cdc97a27a3fba81940ac4e9 Mon Sep 17 00:00:00 2001 From: Stuart W Baker Date: Sat, 22 Oct 2022 21:42:31 -0500 Subject: [PATCH] Fix the preamble count to match the S-9.2 minimum of 10 preamble bits (20 half bits). (#671) --- src/dcc/Receiver.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dcc/Receiver.hxx b/src/dcc/Receiver.hxx index 9ee2407fc..21c74b653 100644 --- a/src/dcc/Receiver.hxx +++ b/src/dcc/Receiver.hxx @@ -150,7 +150,7 @@ public: parseCount_++; return; } - if (timings_[DCC_ZERO].match(value) && (parseCount_ >= 16)) + if (timings_[DCC_ZERO].match(value) && (parseCount_ >= 20)) { parseState_ = DCC_END_OF_PREAMBLE; return;