网关地址也要设置为0

This commit is contained in:
cdyong 2015-12-18 11:07:27 +00:00
parent 2b0cf180bd
commit f10bc14b98
1 changed files with 3 additions and 1 deletions

View File

@ -405,7 +405,7 @@ void GetDeviceKey(byte id, Array& key, void* param)
{ {
TS("TinyClient::GetDeviceKey"); TS("TinyClient::GetDeviceKey");
//debug_printf("微网客户端获取密钥"); //debug_printf("微网客户端获取密钥");
return;
auto client = (TinyClient*)param; auto client = (TinyClient*)param;
if(Sys.Version < 0xFFFF) return; if(Sys.Version < 0xFFFF) return;
@ -574,6 +574,8 @@ void TinyClient::Ping()
auto tc = TinyConfig::Current; auto tc = TinyConfig::Current;
memset(tc->Mac, 0, 5); memset(tc->Mac, 0, 5);
tc->Save(); tc->Save();
Server = 0;
Sys.Reset(); Sys.Reset();
//Server = 0; //Server = 0;