(1) Network.Comet.Ambient clean-up, (2) Output.DB.SaveFlowmeterCorrections bug fix, ver. 2.18.822
This commit is contained in:
@@ -22,7 +22,6 @@ namespace TBF.BenchControl.Network.Comet.Ambient
|
||||
public override string ToString() { return string.Format("Ambient({0})", Cfg.ToString(1)); }
|
||||
|
||||
readonly AmbientCfg myCfg;
|
||||
readonly GenericDevices.INetworkAdapter netAdapter;
|
||||
readonly IPAddress ipAddress;
|
||||
readonly int tcpPort;
|
||||
|
||||
@@ -65,9 +64,6 @@ namespace TBF.BenchControl.Network.Comet.Ambient
|
||||
myCfg = cfg as AmbientCfg;
|
||||
if (myCfg == null) throw new ArgumentNullException("No configuration");
|
||||
|
||||
netAdapter = TbfComponents.FindComponent(cfg.ParentName, components) as GenericDevices.INetworkAdapter;
|
||||
if (netAdapter == null) throw new ArgumentNullException("No network adapter");
|
||||
|
||||
ipAddress = IPAddress.Parse(myCfg.IPAddress);
|
||||
tcpPort = myCfg.TcpPort;
|
||||
|
||||
@@ -94,7 +90,7 @@ namespace TBF.BenchControl.Network.Comet.Ambient
|
||||
state = State.Idle;
|
||||
msrmntState = MsrmntState.Busy;
|
||||
|
||||
log.FatalFormat("IP Address={0}, device {1}", netAdapter.IPAddress, this.ToString());
|
||||
log.FatalFormat("Initialization successful: {0}", this.ToString());
|
||||
}
|
||||
|
||||
/// <summary>Run this device</summary>
|
||||
|
||||
Reference in New Issue
Block a user