Update IRac.cpp (#23438)

Fix the Coolix fan-only mode in IRac class.

(9785cb910d)
This commit is contained in:
NeuDLi 2025-05-18 17:52:16 +02:00 committed by GitHub
parent 17210d1aca
commit 3327f4a5ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -402,8 +402,10 @@ void IRac::airton(IRAirtonAc *ac,
const int16_t sleep) {
ac->begin();
ac->setPower(on);
ac->setMode(ac->convertMode(mode));
ac->setTemp(degrees);
// Mode needs to be set after temp as Fan-only uses a special temp.
ac->setMode(ac->convertMode(mode));
// Fan needs to be set after mode, as setMode can change the fan speed.
ac->setFan(ac->convertFan(fan));
ac->setSwingV(swingv != stdAc::swingv_t::kOff);
// No Quiet setting available.