Skip to content

Commit 5080851

Browse files
KingingWangcrankyoldgit
authored andcommitted
Fixed the bug where the wind speed was always set to auto.
1 parent 8fb411b commit 5080851

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ir_Bosch.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ uint8_t IRBosch144AC::getMode(void) const {
176176
/// @param[in] on true, the setting is on. false, the setting is off.
177177
void IRBosch144AC::setQuiet(const bool on) {
178178
_.Quiet = on; // save 1 bit in Section3
179-
setFan(kBosch144FanAuto); // set Fan -> Auto
179+
if (on) // if Quiet is on, set Fan to Auto
180+
setFan(kBosch144FanAuto); // set Fan -> Auto
180181
}
181182

182183
/// Get the Quiet mode of the A/C.

0 commit comments

Comments
 (0)