From f57fd245a1e4df13fc5bd8a1d0930706deccecb2 Mon Sep 17 00:00:00 2001 From: Harald Barth Date: Thu, 4 Aug 2022 04:15:28 +0200 Subject: [PATCH] temp fix for counting packets code --- DCCACK.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/DCCACK.cpp b/DCCACK.cpp index d159383..82deb7f 100644 --- a/DCCACK.cpp +++ b/DCCACK.cpp @@ -113,7 +113,11 @@ void DCCACK::Setup(int wordval, ackOp const program[], ACK_CALLBACK callback) { Setup(0, 0, program, callback); } +#ifdef ARDUINO_ARCH_ESP32 +const byte RESET_MIN=12; // Ugly fix until counting code is right +#else const byte RESET_MIN=8; // tuning of reset counter before sending message +#endif // checkRessets return true if the caller should yield back to loop and try later. bool DCCACK::checkResets(uint8_t numResets) {