Emergency Fix.

This commit is contained in:
parallelbgls
2017-02-28 21:45:44 +08:00
parent f17e34132d
commit 057ce04694
2 changed files with 9 additions and 1 deletions

View File

@@ -456,6 +456,14 @@ namespace Modbus.Net
return false;
break;
}
case MachineSetDataType.Name:
{
var value = values.SingleOrDefault(p => p.Key == addressUnit.Name);
var data = Convert.ChangeType(value.Value/addressUnit.Zoom, dataType);
if (!valueHelper.SetValue(datas, mainByteCount, localByteCount, data))
return false;
break;
}
}
}
//写入数据

View File

@@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>Modbus.Net</id>
<version>1.2.3</version>
<version>1.2.3.1</version>
<title>Modbus.Net</title>
<authors>Chris L.(Luo Sheng)</authors>
<owners>Hangzhou Delian IoT Science Technology Co.,Ltd.</owners>