2015-04-24 update 1 fix a bug in AddressFormater
This commit is contained in:
@@ -15,7 +15,7 @@ namespace ModBus.Net
|
||||
{
|
||||
public override string FormatAddress(string area, int address)
|
||||
{
|
||||
if (area.ToUpper() == "DB")
|
||||
if (area.ToUpper().Substring(0,2) == "DB")
|
||||
{
|
||||
return area.ToUpper() + "." + "DB" + address;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user