This commit is contained in:
cdyong 2015-12-23 07:47:47 +00:00
parent bde2c4765c
commit c50fb63cf5
1 changed files with 16 additions and 16 deletions

View File

@ -101,22 +101,22 @@ ITransport* CreateShunCom(COM_Def index, int baudRate, Pin rst, Pin power, Pin s
//Sys.Sleep(300);
//
//auto tc = TinyConfig::Current;
//
//if(tc->Channel != 0x0F)
//{
// if(zb->EnterConfig())
// {
// //zb->ShowConfig();
// zb->SetDevice(0x02);
// zb->SetSend(0x00);
// //zb->SetPanID(0x4444);
// //zb->EraConfig();
// //tc->Channel = 0x0F;
// tc->Save();
// zb->ExitConfig();
// }
//}
auto tc = TinyConfig::Current;
if(tc->Channel != 0x0F)
{
if(zb->EnterConfig())
{
//zb->ShowConfig();
zb->SetDevice(0x02);
zb->SetSend(0x00);
//zb->SetPanID(0x4444);
//zb->EraConfig();
//tc->Channel = 0x0F;
tc->Save();
zb->ExitConfig();
}
}
zb->Led = led;
return zb;