mirror of
https://github.com/espressif/openthread.git
synced 2026-07-08 13:20:25 +00:00
[cli] count failed ping try (#3882)
This commit is contained in:
committed by
Jonathan Hui
parent
df0a5787c4
commit
6d1d7b2404
+1
-3
@@ -2108,8 +2108,6 @@ void Interpreter::HandlePingTimer()
|
||||
SuccessOrExit(error = otMessageSetLength(message, mLength));
|
||||
SuccessOrExit(error = otIcmp6SendEchoRequest(mInstance, message, messageInfo, 1));
|
||||
|
||||
mCount--;
|
||||
|
||||
exit:
|
||||
|
||||
if (error != OT_ERROR_NONE && message != NULL)
|
||||
@@ -2117,7 +2115,7 @@ exit:
|
||||
otMessageFree(message);
|
||||
}
|
||||
|
||||
if (mCount)
|
||||
if (--mCount)
|
||||
{
|
||||
mPingTimer.Start(mInterval);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user