From 8d471d9f3f1e3e016c5f1909c69e178a1bd53719 Mon Sep 17 00:00:00 2001 From: Ash-4 <81280775+Ash-4@users.noreply.github.com> Date: Sun, 5 Sep 2021 16:19:03 -0500 Subject: [PATCH] Restore ackManagerByte before retry Verify --- DCC.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DCC.h b/DCC.h index c7dcbe0..8cb5d97 100644 --- a/DCC.h +++ b/DCC.h @@ -38,10 +38,11 @@ enum ackOp : byte ITC1, // If True Callback(1) (if prevous WACK got an ACK) ITC0, // If True callback(0); ITCB, // If True callback(byte) + ITCBV, // If True callback(byte) - end of Verify Byte ITCB7, // If True callback(byte &0x7F) NAKFAIL, // if false callback(-1) FAIL, // callback(-1) - RCOUNT, // increment ackRetry counter + BIV, // Set ackManagerByte to initial value for Verify retry STARTMERGE, // Clear bit and byte settings ready for merge pass MERGE, // Merge previous wack response with byte value and decrement bit number (use for readimng CV bytes) SETBIT, // sets bit number to next prog byte @@ -152,6 +153,7 @@ private: static ackOp const *ackManagerProg; static ackOp const *ackManagerProgStart; static byte ackManagerByte; + static byte ackManagerByteVerify; static byte ackManagerBitNum; static int ackManagerCv; static byte ackManagerRetry;