修正Mac拷贝错误
This commit is contained in:
parent
d246b8059a
commit
214221807a
|
@ -16,7 +16,7 @@ void TinyConfig::LoadDefault()
|
||||||
Channel = 0x0F;
|
Channel = 0x0F;
|
||||||
Speed = 250;
|
Speed = 250;
|
||||||
|
|
||||||
PingTime = 20;
|
PingTime = 10;
|
||||||
OfflineTime = 60;
|
OfflineTime = 60;
|
||||||
StartSet = 64;
|
StartSet = 64;
|
||||||
}
|
}
|
||||||
|
|
|
@ -795,7 +795,7 @@ void MessageNode::Set(const TinyMessage& msg, int msTimeout)
|
||||||
if(msg.State)
|
if(msg.State)
|
||||||
{
|
{
|
||||||
Mac[0] = 5;
|
Mac[0] = 5;
|
||||||
memcpy(Mac, msg.State, 5);
|
memcpy(&Mac[1], msg.State, 5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue