@@ -2839,9 +2839,11 @@ namespace MOKA_Factory_Tools
bool bRet = false;
do
{
+ --count;
+ Log.WriteErrorLog(string.Format("Retrying {0} time", RetryCount-count));
bRet = Sendcmd(Comport, CMDHead, CMDID, param, receive2, TwoLengthBit, out result, out data, out error, waitTime);
if (bRet) break;
- } while (--count > 0);
+ } while (count > 0);
return bRet;
}