1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-12-24 13:21:23 +01:00

ACK RETRY variables added

This commit is contained in:
Ash-4 2021-08-21 00:33:01 -05:00 committed by GitHub
parent 34d2ab3543
commit b67027a1ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
DCC.h
View File

@ -115,6 +115,10 @@ public:
static inline void setGlobalSpeedsteps(byte s) { static inline void setGlobalSpeedsteps(byte s) {
globalSpeedsteps = s; globalSpeedsteps = s;
}; };
static inline void setAckRetry(int retry) {
ackRetry = retry;
ackRetrySum = 0; // reset running total
};
private: private:
struct LOCO struct LOCO
@ -143,9 +147,13 @@ private:
// ACK MANAGER // ACK MANAGER
static ackOp const *ackManagerProg; static ackOp const *ackManagerProg;
static ackOp const *ackManagerProgStart;
static byte ackManagerByte; static byte ackManagerByte;
static byte ackManagerBitNum; static byte ackManagerBitNum;
static int ackManagerCv; static int ackManagerCv;
static int ackManagerRetry;
static int ackRetry;
static int ackRetrySum;
static int ackManagerWord; static int ackManagerWord;
static byte ackManagerStash; static byte ackManagerStash;
static bool ackReceived; static bool ackReceived;