Code cleanup.
This commit is contained in:
@@ -30,7 +30,7 @@ namespace TBF.Rig.Modbus.PressureMeter.Meret
|
||||
public int ModbusAddress; /// 0 (1..254)
|
||||
public double DefaultPressure; /// 1
|
||||
public string MsrdFormat { get; set; } /// 2
|
||||
public Config.Unit MsrdUnit { get; set; } /// 3
|
||||
public Config.Unit MsrdUnit { get; set; } /// 3
|
||||
public double MsrdValLimLo { get; set; } /// 4
|
||||
public double MsrdValLimHi { get; set; } /// 5
|
||||
|
||||
@@ -168,7 +168,7 @@ namespace TBF.Rig.Modbus.PressureMeter.Meret
|
||||
case 2:
|
||||
return true;
|
||||
case 3:
|
||||
if (ParamValues(3).Contains(str)) return true;
|
||||
if (ParamValues(i).Contains(str)) return true;
|
||||
break;
|
||||
default:
|
||||
message = "Invalid index";
|
||||
@@ -205,7 +205,7 @@ namespace TBF.Rig.Modbus.PressureMeter.Meret
|
||||
prms.MsrdValLimHi = this.MsrdValLimHi;
|
||||
}
|
||||
|
||||
public Config.Entities.IParamsProvider Clone()
|
||||
public IParamsProvider Clone()
|
||||
{
|
||||
PressureMeterCfg pars = new PressureMeterCfg();
|
||||
CopyContentTo(pars);
|
||||
|
||||
Reference in New Issue
Block a user