local pool replacement
This commit is contained in:
parent
f581b37fcf
commit
f108ae883c
@ -96,26 +96,25 @@ float ThermalComponentCore::getLowerOpLimit() {
|
|||||||
|
|
||||||
|
|
||||||
ReturnValue_t ThermalComponentCore::setTargetState(int8_t newState) {
|
ReturnValue_t ThermalComponentCore::setTargetState(int8_t newState) {
|
||||||
// GlobDataSet mySet;
|
targetState.setReadWriteMode(pool_rwm_t::VAR_READ_WRITE);
|
||||||
// gp_uint8_t writableTargetState(targetState.getDataPoolId(),
|
targetState.read();
|
||||||
// &mySet, PoolVariableIF::VAR_READ_WRITE);
|
if((targetState == STATE_REQUEST_OPERATIONAL) and
|
||||||
// mySet.read();
|
(newState != STATE_REQUEST_IGNORE)) {
|
||||||
// if ((writableTargetState == STATE_REQUEST_OPERATIONAL)
|
return HasReturnvaluesIF::RETURN_FAILED;
|
||||||
// && (newState != STATE_REQUEST_IGNORE)) {
|
}
|
||||||
// return HasReturnvaluesIF::RETURN_FAILED;
|
|
||||||
// }
|
switch (newState) {
|
||||||
// switch (newState) {
|
case STATE_REQUEST_HEATING:
|
||||||
// case STATE_REQUEST_HEATING:
|
case STATE_REQUEST_IGNORE:
|
||||||
// case STATE_REQUEST_IGNORE:
|
case STATE_REQUEST_OPERATIONAL:
|
||||||
// case STATE_REQUEST_OPERATIONAL:
|
targetState = newState;
|
||||||
// writableTargetState = newState;
|
break;
|
||||||
// break;
|
case STATE_REQUEST_NON_OPERATIONAL:
|
||||||
// case STATE_REQUEST_NON_OPERATIONAL:
|
default:
|
||||||
// default:
|
return INVALID_TARGET_STATE;
|
||||||
// return INVALID_TARGET_STATE;
|
}
|
||||||
// }
|
targetState.setValid(true);
|
||||||
// mySet.commit(PoolVariableIF::VALID);
|
targetState.commit();
|
||||||
// return HasReturnvaluesIF::RETURN_OK;
|
|
||||||
return HasReturnvaluesIF::RETURN_OK;
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user