Skip to content

Commit

Permalink
get switchprog a bit faster after switchProgMode change
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Nov 20, 2024
1 parent 1704e30 commit 5f5402f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/devices/thermostat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2447,6 +2447,11 @@ bool Thermostat::set_switchProgMode(const char * value, const int8_t id) {
return false;
}
write_command(set_typeids[hc->hc()], 19, set + 1, set_typeids[hc->hc()]);
hc->switchProgMode = set;
toggle_fetch(timer_typeids[hc->hc()], hc->program != 1 && hc->switchProgMode != 1); // RC100 or both 0
toggle_fetch(timer2_typeids[hc->hc()], hc->program == 1 && hc->switchProgMode == 0);
toggle_fetch(timer3_typeids[hc->hc()], hc->program == 0 && hc->switchProgMode == 1);
toggle_fetch(timer4_typeids[hc->hc()], hc->program == 1 && hc->switchProgMode == 1);
return true;
}

Expand Down

0 comments on commit 5f5402f

Please sign in to comment.