|
@@ -179,16 +179,23 @@ namespace PunkHPX8_RT.Modules.Reservoir
|
|
|
/// <returns></returns>
|
|
|
private bool AutoHedOn()
|
|
|
{
|
|
|
-
|
|
|
bool result = _dmReservoirDevice.ReservoirData.CaFlow < _cellFlowStartLowLimit;
|
|
|
if (result)
|
|
|
{
|
|
|
LOG.WriteLog(eEvent.ERR_RESERVOIR, Module, $"CA Flow {_dmReservoirDevice.ReservoirData.CaFlow} is less than CellFlowStartLowLimit{_cellFlowStartLowLimit}");
|
|
|
return false;
|
|
|
}
|
|
|
- result &= _temperatureController.EnableOperation("", null);
|
|
|
- result &= _temperatureController.SetTargetTemperatureOperation("", new object[] { _recipe.TemperatureSetPoint });
|
|
|
- return result;
|
|
|
+ result = _temperatureController.EnableOperation("", null);
|
|
|
+ if (!result)
|
|
|
+ {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ result = _temperatureController.SetTargetTemperatureOperation("", new object[] { _recipe.TemperatureSetPoint });
|
|
|
+ if (!result)
|
|
|
+ {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 检验Hed是否成功
|