Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure the sleep parameter is used for the FUJITSU_AC protocol. #1992

Merged
merged 1 commit into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/IRac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3234,7 +3234,7 @@ bool IRac::sendAc(const stdAc::state_t desired, const stdAc::state_t *prev) {
fujitsu(&ac, (fujitsu_ac_remote_model_t)send.model, send.power, send.mode,
send.celsius, send.degrees, send.fanspeed,
send.swingv, send.swingh, send.quiet,
send.turbo, send.econo, send.filter, send.clean);
send.turbo, send.econo, send.filter, send.clean, send.sleep);
break;
}
#endif // SEND_FUJITSU_AC
Expand Down
11 changes: 7 additions & 4 deletions test/IRac_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,8 @@ TEST(TestIRac, Fujitsu) {
false, // Turbo (Powerful)
false, // Econo
true, // Filter
true); // Clean
true, // Clean
-1); // Sleep
ASSERT_EQ(ardb1_expected, ac.toString());
ac._irsend.makeDecodeResult();
EXPECT_TRUE(capture.decode(&ac._irsend.capture));
Expand Down Expand Up @@ -719,7 +720,8 @@ TEST(TestIRac, Fujitsu) {
false, // Turbo (Powerful)
false, // Econo
true, // Filter
true); // Clean
true, // Clean
-1); // Sleep
ASSERT_EQ(arry4_expected, ac.toString());
ac._irsend.makeDecodeResult();
EXPECT_TRUE(capture.decode(&ac._irsend.capture));
Expand All @@ -742,8 +744,9 @@ TEST(TestIRac, Fujitsu) {
false, // Quiet
false, // Turbo (Powerful)
false, // Econo
false, // Filter
false); // Clean
false, // Filter
false, // Clean
-1); // Sleep
ASSERT_EQ(arrew4e_expected, ac.toString());
ac._irsend.makeDecodeResult();
EXPECT_TRUE(capture.decode(&ac._irsend.capture));
Expand Down
Loading