Skip to content

Commit

Permalink
add begin() for AMCOR protocol for crankyoldgit#899
Browse files Browse the repository at this point in the history
  • Loading branch information
k2biru authored Sep 11, 2019
1 parent 46c531f commit 8f01897
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/IRac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ bool IRac::isProtocolSupported(const decode_type_t protocol) {
void IRac::amcor(IRAmcorAc *ac,
const bool on, const stdAc::opmode_t mode, const float degrees,
const stdAc::fanspeed_t fan) {
ac->begin();
ac->setPower(on);
ac->setMode(ac->convertMode(mode));
ac->setTemp(degrees);
Expand Down

0 comments on commit 8f01897

Please sign in to comment.