Skip to content

Commit

Permalink
Make Sleep mode 2 the default for Common API
Browse files Browse the repository at this point in the history
  • Loading branch information
crankyoldgit committed Apr 4, 2020
1 parent 30223d3 commit 7af6755
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IRac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ void IRac::hitachi1(IRHitachiAc1 *ac, const hitachi_ac1_remote_model_t model,
ac->setFan(ac->convertFan(fan));
ac->setSwing(swingv != stdAc::swingv_t::kOff);
ac->setSwingToggle(swing_toggle);
ac->setSleep((sleep >= 0) ? kHitachiAc1Sleep1 : kHitachiAc1SleepOff);
ac->setSleep((sleep >= 0) ? kHitachiAc1Sleep2 : kHitachiAc1SleepOff);
// No Sleep setting available.
// No Swing(H) setting available.
// No Quiet setting available.
Expand Down
2 changes: 1 addition & 1 deletion test/IRac_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ TEST(TestIRac, Hitachi1) {
char expected[] =
"Model: 1 (R-LT0541-HTA-A), Power: On, Power Toggle: Off, "
"Mode: 15 (Auto), Temp: 19C, Fan: 4 (Medium), "
"Swing(V) Toggle: On, Swing(V) Mode: On, Sleep: 1, "
"Swing(V) Toggle: On, Swing(V) Mode: On, Sleep: 2, "
"On Timer: Off, Off Timer: Off";

ac.begin();
Expand Down

0 comments on commit 7af6755

Please sign in to comment.