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