Skip to content

Commit

Permalink
Fujitsu: Handle toggles of Econo & Turbo when IRac interface is use…
Browse files Browse the repository at this point in the history
…d. (#1345)

* Handle the toggles for `FUJITSU_AC` better.

For #1334
  • Loading branch information
crankyoldgit authored Nov 26, 2020
1 parent f9de6d1 commit 69c116c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/IRac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2109,6 +2109,10 @@ stdAc::state_t IRac::handleToggles(const stdAc::state_t desired,
case decode_type_t::ELECTRA_AC:
result.light = desired.light ^ prev->light;
break;
case decode_type_t::FUJITSU_AC:
result.turbo = desired.turbo ^ prev->turbo;
result.econo = desired.econo ^ prev->econo;
break;
case decode_type_t::MIDEA:
result.turbo = desired.turbo ^ prev->turbo;
result.econo = desired.econo ^ prev->econo;
Expand Down

0 comments on commit 69c116c

Please sign in to comment.