From b67027a1ed45856c79d60599b56b5599f7dc7b4d Mon Sep 17 00:00:00 2001 From: Ash-4 <81280775+Ash-4@users.noreply.github.com> Date: Sat, 21 Aug 2021 00:33:01 -0500 Subject: [PATCH] ACK RETRY variables added --- DCC.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DCC.h b/DCC.h index d927cc1..bbe956d 100644 --- a/DCC.h +++ b/DCC.h @@ -115,6 +115,10 @@ public: static inline void setGlobalSpeedsteps(byte s) { globalSpeedsteps = s; }; + static inline void setAckRetry(int retry) { + ackRetry = retry; + ackRetrySum = 0; // reset running total + }; private: struct LOCO @@ -143,9 +147,13 @@ private: // ACK MANAGER static ackOp const *ackManagerProg; + static ackOp const *ackManagerProgStart; static byte ackManagerByte; static byte ackManagerBitNum; static int ackManagerCv; + static int ackManagerRetry; + static int ackRetry; + static int ackRetrySum; static int ackManagerWord; static byte ackManagerStash; static bool ackReceived;