there are actually 8 heaters
Some checks are pending
EIVE/eive-obsw/pipeline/head Build started...
EIVE/eive-obsw/pipeline/pr-main This commit looks good

This commit is contained in:
Robin Müller 2023-07-06 20:13:33 +02:00
parent ee4285075a
commit 7b611810df
Signed by: muellerr
GPG Key ID: A649FB78196E3849
2 changed files with 3 additions and 1 deletions

View File

@ -27,6 +27,8 @@ will consitute of a breaking change warranting a new major release:
- TMP1075: Set dataset invalid on shutdown explicitely
- Small fixes for TMP1075 FDIR: Use strange and missed reply counters.
- TCS controller: Last heater (S-band heater) was skipped for transition completion
checks.
# [v6.0.0] 2023-07-02

View File

@ -1751,7 +1751,7 @@ void ThermalController::resetSensorsArray() {
}
void ThermalController::heaterTransitionControl(const HeaterSwitchStates& currentHeaterStates) {
for (unsigned i = 0; i < 7; i++) {
for (unsigned i = 0; i < heater::Switch::NUMBER_OF_SWITCHES; i++) {
if (heaterStates[i].switchTransition) {
if (currentHeaterStates[i] == heaterStates[i].target) {
heaterStates[i].switchTransition = false;