inititalize loop indexes
This commit is contained in:
parent
e10359077c
commit
38a0c14940
@ -172,7 +172,7 @@ void ThermalController::performControlOperation() {
|
||||
transitionToOffCycles++;
|
||||
// if heater still ON after 10 cycles, switch OFF again
|
||||
if (transitionToOffCycles == 10) {
|
||||
for (uint8_t i; i < heater::Switchers::NUMBER_OF_SWITCHES; i++) {
|
||||
for (uint8_t i = 0; i < heater::Switchers::NUMBER_OF_SWITCHES; i++) {
|
||||
heaterHandler.switchHeater(static_cast<heater::Switchers>(i),
|
||||
HeaterHandler::SwitchState::OFF);
|
||||
}
|
||||
@ -1745,7 +1745,7 @@ void ThermalController::tooHotHandlerWhichClearsOneShotFlag(object_id_t object,
|
||||
void ThermalController::startTransition(Mode_t mode_, Submode_t submode_) {
|
||||
triggerEvent(CHANGING_MODE, mode_, submode_);
|
||||
if (mode_ == MODE_OFF) {
|
||||
for (uint8_t i; i < heater::Switchers::NUMBER_OF_SWITCHES; i++) {
|
||||
for (uint8_t i = 0; i < heater::Switchers::NUMBER_OF_SWITCHES; i++) {
|
||||
heaterHandler.switchHeater(static_cast<heater::Switchers>(i),
|
||||
HeaterHandler::SwitchState::OFF);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user