Modbus : Code from StopDevice2( ) moved to StopDevice( ).
This commit is contained in:
parent
eb142244e4
commit
79e1fff45e
@ -35,6 +35,9 @@ namespace TBF.Rig.Generic
|
||||
/// </summary>
|
||||
void StopDevice();
|
||||
|
||||
/// <summary>
|
||||
/// Extra stop device function required by Camera only
|
||||
/// </summary>
|
||||
void StopDevice2();
|
||||
}
|
||||
}
|
||||
|
||||
@ -326,10 +326,6 @@ namespace TBF.Rig.Modbus.Common
|
||||
|
||||
/// <summary>Stop this device</summary>
|
||||
public void StopDevice()
|
||||
{
|
||||
}
|
||||
|
||||
public void StopDevice2()
|
||||
{
|
||||
if (serialPort != null)
|
||||
{
|
||||
@ -349,5 +345,7 @@ namespace TBF.Rig.Modbus.Common
|
||||
serialPort = null;
|
||||
}
|
||||
}
|
||||
|
||||
public void StopDevice2() { }
|
||||
}
|
||||
}
|
||||
|
||||
@ -10,7 +10,7 @@ using TBF.Rig.Generic;
|
||||
|
||||
namespace TBF.Rig.Modbus.Common
|
||||
{
|
||||
public class ModbusCfg : ComponentCfgBase, Generic.IComponentCfg, Config.Entities.IParamsProvider
|
||||
public class ModbusCfg : ComponentCfgBase, IComponentCfg, Config.Entities.IParamsProvider
|
||||
{
|
||||
public static XmlSerializer Serializer = XmlSerializer.FromTypes(new[] { typeof(ModbusCfg) })[0];
|
||||
public override XmlSerializer GetSerializer() { return Serializer; }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user