From 702ec8b3560b80c1f84e8df036f06d0daa09660b Mon Sep 17 00:00:00 2001 From: David Conran Date: Wed, 3 Jul 2024 18:56:20 +1000 Subject: [PATCH] Update haier160 & HaierYRWO2 to use quiet in the common class. (#2115) Quiet mode operation was missing in the function calls of `haierYrwo2()` and `haier160()` thus passing the wrong arguments to the function. Add the `quiet` parameter in fixes this. Fixes #2101 --- src/IRac.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IRac.cpp b/src/IRac.cpp index 602e0018d..b500303d9 100644 --- a/src/IRac.cpp +++ b/src/IRac.cpp @@ -3279,8 +3279,8 @@ bool IRac::sendAc(const stdAc::state_t desired, const stdAc::state_t *prev) { { IRHaierAC160 ac(_pin, _inverted, _modulation); haier160(&ac, send.power, send.mode, send.celsius, send.degrees, - send.fanspeed, send.swingv, send.turbo, send.filter, send.clean, - send.light, prev_light, send.sleep); + send.fanspeed, send.swingv, send.turbo, send.quiet, + send.filter, send.clean, send.light, prev_light, send.sleep); break; } #endif // SEND_HAIER_AC160 @@ -3301,7 +3301,7 @@ bool IRac::sendAc(const stdAc::state_t desired, const stdAc::state_t *prev) { IRHaierACYRW02 ac(_pin, _inverted, _modulation); haierYrwo2(&ac, send.power, send.mode, send.celsius, send.degrees, send.fanspeed, send.swingv, send.swingh, send.turbo, - send.filter, send.sleep); + send.quiet, send.filter, send.sleep); break; } #endif // SEND_HAIER_AC_YRW02