themral module update
This commit is contained in:
parent
f81c9d7ecc
commit
be9913f262
@ -256,15 +256,16 @@ bool ThermalModule::calculateModuleHeaterRequestAndSetModuleStatus(
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ThermalModule::setHeating(bool on) {
|
void ThermalModule::setHeating(bool on) {
|
||||||
// GlobDataSet mySet;
|
ReturnValue_t result = targetState.read();
|
||||||
// gp_int8_t writableTargetState(targetState.getDataPoolId(),
|
if(result == HasReturnvaluesIF::RETURN_OK) {
|
||||||
// &mySet, PoolVariableIF::VAR_WRITE);
|
if(on) {
|
||||||
// if (on) {
|
targetState.value = STATE_REQUEST_HEATING;
|
||||||
// writableTargetState = STATE_REQUEST_HEATING;
|
}
|
||||||
// } else {
|
else {
|
||||||
// writableTargetState = STATE_REQUEST_PASSIVE;
|
targetState.value = STATE_REQUEST_PASSIVE;
|
||||||
// }
|
}
|
||||||
// mySet.commit(PoolVariableIF::VALID);
|
}
|
||||||
|
targetState.setValid(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThermalModule::updateTargetTemperatures(ThermalComponentIF* component,
|
void ThermalModule::updateTargetTemperatures(ThermalComponentIF* component,
|
||||||
|
Loading…
Reference in New Issue
Block a user