This commit is contained in:
parent
bde2c4765c
commit
c50fb63cf5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue