修正Mac拷贝错误

This commit is contained in:
nnhy 2015-12-16 14:59:15 +00:00
parent d246b8059a
commit 214221807a
2 changed files with 2 additions and 2 deletions

View File

@ -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;
} }

View File

@ -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);
} }
} }