Style changes to prevent warnings.
This commit is contained in:
@@ -87,7 +87,7 @@ namespace TBF.Rig.MettlerToledo.Standard
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initalize(); /// Initializes DrainValve, etc., should be called in DebugMode.Simulate
|
||||
|
||||
|
||||
@@ -30,7 +30,6 @@ namespace TBF.Rig.MettlerToledo.Standard
|
||||
int currentReadingsCount;
|
||||
|
||||
int startTime;
|
||||
bool activityStarted;
|
||||
bool measurementCompleted;
|
||||
int timeout;
|
||||
|
||||
@@ -57,7 +56,6 @@ namespace TBF.Rig.MettlerToledo.Standard
|
||||
massReadings = new double[totalReadingsCount];
|
||||
sortedMassReadings = new double[totalReadingsCount];
|
||||
currentReadingsCount = 0;
|
||||
activityStarted = false;
|
||||
measurementCompleted = false;
|
||||
timeout = (method == Config.Entities.MassMethod.Scale) ? 60 : 2;
|
||||
|
||||
@@ -94,13 +92,11 @@ namespace TBF.Rig.MettlerToledo.Standard
|
||||
if (delayBefore == 0 && scale.Activity == Activity.Idle)
|
||||
{
|
||||
StartMeasurement();
|
||||
activityStarted = true;
|
||||
scale.Activity = Activity.RunningOperation;
|
||||
opState = OpState.MassMeasurement;
|
||||
}
|
||||
else
|
||||
{
|
||||
activityStarted = false;
|
||||
opState = OpState.WaitingBeforeMeasurment;
|
||||
}
|
||||
}
|
||||
@@ -118,7 +114,6 @@ namespace TBF.Rig.MettlerToledo.Standard
|
||||
if (StateMachine.Time >= startTime + delayBefore && scale.Activity == Activity.Idle)
|
||||
{
|
||||
StartMeasurement();
|
||||
activityStarted = true;
|
||||
scale.Activity = Activity.RunningOperation;
|
||||
opState = OpState.MassMeasurement;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user