Modbus : Code from StopDevice2( ) moved to StopDevice( ).

This commit is contained in:
Milan Hanajik 2021-03-29 11:12:18 +02:00
parent eb142244e4
commit 79e1fff45e
3 changed files with 6 additions and 5 deletions

View File

@ -35,6 +35,9 @@ namespace TBF.Rig.Generic
/// </summary>
void StopDevice();
/// <summary>
/// Extra stop device function required by Camera only
/// </summary>
void StopDevice2();
}
}

View File

@ -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() { }
}
}

View File

@ -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; }