Skip to content

Commit

Permalink
Removed old code
Browse files Browse the repository at this point in the history
  • Loading branch information
barakwei authored Aug 14, 2016
1 parent 9186af1 commit 1f273b3
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions IRelectra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,30 +101,6 @@ uint64_t IRelectra::encodeElectra(bool power, IRElectraMode mode, IRElectraFan f
return code.num;
}

uint64_t encodeElectra2(bool power, IRElectraMode mode, IRElectraFan fan, int temperature, bool swing, bool sleep)
{
uint64_t num = 0;
uint64_t power64 = power;
uint64_t mode64 = mode;

num |= ((power64 & 1) << 33);

num |= ((mode64 & 7) << 30);

num |= ((fan & 3) << 28);

num |= ((swing & 1) << 25);

temperature -= 15;
num |= ((temperature & 15) << 19);

num |= ((sleep & 1) << 18);

num |= 2;

return num;
}

///
/// Mark Space Array
///
Expand Down

0 comments on commit 1f273b3

Please sign in to comment.