不鸟不想关的设备的不想关指令,防止溢出

This commit is contained in:
WangQiang 2015-11-26 05:18:02 +00:00
parent c090ce2fbe
commit 67a979cafb
1 changed files with 3 additions and 1 deletions

View File

@ -71,6 +71,8 @@ bool TinyServer::OnReceive(TinyMessage& msg)
byte id = msg.Src;
Device* dv = Current;
if(!dv) dv = FindDevice(id);
// 不响应不在设备列表设备的 非Join指令
if((!dv) && (msg.Code > 2))return false;
switch(msg.Code)
{