Skip to content

Commit

Permalink
Fix Coolix unit test erros when using Apple c++ compiler.
Browse files Browse the repository at this point in the history
- Possible difference in behaviour between g++ & Apple's c++ memory 
initialisation.

FYI @egueli
Fixes #1028
  • Loading branch information
crankyoldgit committed Jan 26, 2020
1 parent 27bb582 commit 9e3e6c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ir_Coolix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,11 @@ stdAc::state_t IRCoolixAC::toCommon(const stdAc::state_t *prev) {
} else {
// Set defaults for non-zero values that are not implicitly set for when
// there is no previous state.
// e.g. Any setting that toggles should probably go here.
result.swingv = stdAc::swingv_t::kOff;
result.turbo = false;
result.clean = false;
result.light = false;
result.sleep = -1;
}
// Not supported.
Expand Down

0 comments on commit 9e3e6c8

Please sign in to comment.