Remove globals from timer.cpp.

This commit is contained in:
Jonathan Hui
2016-08-29 13:06:29 -07:00
parent b0c1d02f77
commit 32b6d343c4
15 changed files with 97 additions and 93 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ static otNetifAddress sAutoAddresses[8];
void Interpreter::Init(void)
{
sIp6->mIcmp.SetEchoReplyHandler(&HandleEchoResponse, NULL);
sPingTimer = new(&sPingTimerBuf) Timer(&HandlePingTimer, NULL);
sPingTimer = new(&sPingTimerBuf) Timer(sIp6->mTimerScheduler, &HandlePingTimer, NULL);
sLength = 8;
sCount = 1;
sInterval = 1000;