2014-08-12 update 1 bug fix

This commit is contained in:
parallelbgls@outlook.com
2014-08-12 16:24:04 +08:00
parent b2bf591661
commit ad05e3f770
3 changed files with 4 additions and 4 deletions

View File

@@ -22,7 +22,7 @@ namespace ModBus.Net
//接收数据
byte[] receiveBytes = BytesDecact(_socket.SendMsg(BytesExtend(content)));
//容错处理
if (!CheckRight(content)) return null;
if (!CheckRight(receiveBytes)) return null;
//返回数据
return receiveBytes;
}